Exception: DogecoinClient::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- DogecoinClient::HTTPError
- Defined in:
- lib/errors/http_error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(object) ⇒ HTTPError
Returns a new instance of HTTPError.
6 7 8 9 |
# File 'lib/errors/http_error.rb', line 6 def initialize(object) @object = object @message = "Expected NET::HTTPOK but got: #{object.class}" end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/errors/http_error.rb', line 4 def @message end |
#object ⇒ Object
Returns the value of attribute object.
4 5 6 |
# File 'lib/errors/http_error.rb', line 4 def object @object end |