Exception: Likeno::Errors::RequestError

Inherits:
Standard
  • Object
show all
Defined in:
lib/likeno/errors/request_error.rb

Direct Known Subclasses

RecordNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ RequestError

Returns a new instance of RequestError.



21
22
23
# File 'lib/likeno/errors/request_error.rb', line 21

def initialize(attributes = {})
  @response = attributes[:response]
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



19
20
21
# File 'lib/likeno/errors/request_error.rb', line 19

def response
  @response
end