Class: Transport::Error
- Inherits:
-
Object
- Object
- Transport::Error
- Defined in:
- lib/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
9 10 11 |
# File 'lib/error.rb', line 9 def initialize(error) @message = error['message'] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/error.rb', line 7 def @message end |