Exception: Matterhorn::HttpGeneralError
- Defined in:
- lib/matterhorn/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ HttpGeneralError
constructor
A new instance of HttpGeneralError.
Methods inherited from Error
Constructor Details
#initialize(request, response) ⇒ HttpGeneralError
Returns a new instance of HttpGeneralError.
15 16 17 18 19 |
# File 'lib/matterhorn/error.rb', line 15 def initialize(request, response) @request = request @response = response @code = response.code.to_i end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
13 14 15 |
# File 'lib/matterhorn/error.rb', line 13 def code @code end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
13 14 15 |
# File 'lib/matterhorn/error.rb', line 13 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
13 14 15 |
# File 'lib/matterhorn/error.rb', line 13 def response @response end |