Exception: Logi::HttpClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Logi::HttpClient::Error
- Defined in:
- lib/logi/http_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.
9 10 11 12 13 |
# File 'lib/logi/http_client.rb', line 9 def initialize(status, body) @status = status @body = body super("HTTP #{status}: #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/logi/http_client.rb', line 7 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/logi/http_client.rb', line 7 def status @status end |