mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
refactor
This commit is contained in:
parent
a8425cf7cd
commit
2e0e584d3a
@ -28,7 +28,7 @@ module OBSWS
|
|||||||
def initialize(req_name, code, comment)
|
def initialize(req_name, code, comment)
|
||||||
@req_name = req_name
|
@req_name = req_name
|
||||||
@code = code
|
@code = code
|
||||||
message = "Request #{req_name} returned code #{code}."
|
message = "Request #{@req_name} returned code #{@code}."
|
||||||
message << " With message: #{comment}" if comment
|
message << " With message: #{comment}" if comment
|
||||||
super(message)
|
super(message)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user