Class: Gophr::Error
- Inherits:
-
Object
- Object
- Gophr::Error
- Defined in:
- lib/gophr/error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
5 6 7 |
# File 'lib/gophr/error.rb', line 5 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/gophr/error.rb', line 3 def response @response end |