Exception: Siilar::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/siilar/error.rb

Direct Known Subclasses

NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RequestError

Returns a new instance of RequestError.



8
9
10
11
# File 'lib/siilar/error.rb', line 8

def initialize(response)
  @response = response
  super("#{response.code}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/siilar/error.rb', line 6

def response
  @response
end