Exception: DogecoinClient::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/errors/http_error.rb', line 4

def message
  @message
end

#objectObject

Returns the value of attribute object.



4
5
6
# File 'lib/errors/http_error.rb', line 4

def object
  @object
end