Exception: Crunchbase::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/crunchbase/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ResponseError

Returns a new instance of ResponseError.



14
15
16
17
# File 'lib/crunchbase/exception.rb', line 14

def initialize(message, response)
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'lib/crunchbase/exception.rb', line 12

def response
  @response
end