Exception: Seekmodo::Sdk::Admin::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Seekmodo::Sdk::Admin::Error
- Defined in:
- lib/seekmodo/sdk/admin/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, body) ⇒ Error
Returns a new instance of Error.
12 13 14 15 16 |
# File 'lib/seekmodo/sdk/admin/client.rb', line 12 def initialize(status, body) @status = status @body = body super("gateway #{status}: #{body.to_s[0, 200]}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/seekmodo/sdk/admin/client.rb', line 10 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/seekmodo/sdk/admin/client.rb', line 10 def status @status end |