Exception: Me2API::ServerError
- Inherits:
-
Me2dayAPIError
- Object
- StandardError
- Me2dayAPIError
- Me2API::ServerError
- Defined in:
- lib/me2api/agent.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ ServerError
constructor
A new instance of ServerError.
- #to_s ⇒ Object
Constructor Details
#initialize(reason) ⇒ ServerError
Returns a new instance of ServerError.
14 15 16 |
# File 'lib/me2api/agent.rb', line 14 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
12 13 14 |
# File 'lib/me2api/agent.rb', line 12 def reason @reason end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/me2api/agent.rb', line 18 def to_s "code: #{reason.code}, message: #{reason.}, desc: #{reason.description}" end |