Exception: Midwife::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Midwife::RequestError
- Defined in:
- lib/midwife/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/midwife/client.rb', line 8 def response @response end |