Exception: Midwife::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/midwife/client.rb

Direct Known Subclasses

NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RequestError

Returns a new instance of RequestError.



10
11
12
13
# File 'lib/midwife/client.rb', line 10

def initialize(response)
  super(response.body)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/midwife/client.rb', line 8

def response
  @response
end