Class: PR::Pin::Adapter::ResponseError
- Defined in:
- lib/pr/pin/adapter/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(response, result) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(response, result) ⇒ ResponseError
Returns a new instance of ResponseError.
10 11 12 13 14 15 |
# File 'lib/pr/pin/adapter/errors.rb', line 10 def initialize(response, result) @response = response @result = result super(result[:error_description]) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/pr/pin/adapter/errors.rb', line 8 def response @response end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/pr/pin/adapter/errors.rb', line 8 def result @result end |