Class: PayCertify::Confirmation::Response
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- PayCertify::Confirmation::Response
- Defined in:
- lib/paycertify/confirmation.rb
Instance Attribute Summary collapse
-
#original_response ⇒ Object
Returns the value of attribute original_response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
63 64 65 66 |
# File 'lib/paycertify/confirmation.rb', line 63 def initialize(response) self.original_response = response super JSON.parse(response.body) end |
Instance Attribute Details
#original_response ⇒ Object
Returns the value of attribute original_response.
61 62 63 |
# File 'lib/paycertify/confirmation.rb', line 61 def original_response @original_response end |
Instance Method Details
#success? ⇒ Boolean
68 69 70 |
# File 'lib/paycertify/confirmation.rb', line 68 def success? original_response.status < 400 end |