diff --git a/README.md b/README.md index ac9063c..2da938c 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ If a connection attempt fails or times out an `OBSWSConnectionError` will be rai If a request fails an `OBSWSRequestError` will be raised with a status code. -- The request name and code are retrievable through attributes {OBSWSRequestError}.name and {OBSWSRequestError}.code +- The request name and code are retrievable through attributes {OBSWSRequestError}.req_name and {OBSWSRequestError}.code For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus) diff --git a/lib/obsws.rb b/lib/obsws.rb index e8d9143..8c83cc6 100644 --- a/lib/obsws.rb +++ b/lib/obsws.rb @@ -22,10 +22,10 @@ module OBSWS class OBSWSConnectionError < OBSWSError; end class OBSWSRequestError < OBSWSError - attr_reader :name, :code + attr_reader :req_name, :code - def initialize(name, code, msg) - @name = name + def initialize(req_name, code, msg) + @req_name = name @code = code @msg = msg super(message) diff --git a/lib/obsws/version.rb b/lib/obsws/version.rb index 80dae86..ef0d0ef 100644 --- a/lib/obsws/version.rb +++ b/lib/obsws/version.rb @@ -11,7 +11,7 @@ module OBSWS end def patch - 0 + 1 end def to_a