Exception: RubstApi::WebSocketException
- Inherits:
-
StandardError
- Object
- StandardError
- RubstApi::WebSocketException
- Defined in:
- lib/rubst_api/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(code:, reason: nil) ⇒ WebSocketException
constructor
A new instance of WebSocketException.
Constructor Details
#initialize(code:, reason: nil) ⇒ WebSocketException
Returns a new instance of WebSocketException.
25 26 27 28 |
# File 'lib/rubst_api/errors.rb', line 25 def initialize(code:, reason: nil) @code, @reason = code, reason super(reason) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/rubst_api/errors.rb', line 24 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
24 25 26 |
# File 'lib/rubst_api/errors.rb', line 24 def reason @reason end |