Exception: Patchboard::Action::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Patchboard::Action::ResponseError
- Defined in:
- lib/patchboard/action.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
120 121 122 123 124 125 |
# File 'lib/patchboard/action.rb', line 120 def initialize(response) @response = response @status = @response.status @body = @response.body @headers = @response.headers end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
118 119 120 |
# File 'lib/patchboard/action.rb', line 118 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
118 119 120 |
# File 'lib/patchboard/action.rb', line 118 def headers @headers end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
118 119 120 |
# File 'lib/patchboard/action.rb', line 118 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
118 119 120 |
# File 'lib/patchboard/action.rb', line 118 def status @status end |