Class: PaysonAPI::Response::PaymentUpdate
- Inherits:
-
Object
- Object
- PaysonAPI::Response::PaymentUpdate
- Defined in:
- lib/payson_api/response/payment_update.rb
Instance Attribute Summary collapse
-
#envelope ⇒ Object
Returns the value of attribute envelope.
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(data) ⇒ PaymentUpdate
constructor
A new instance of PaymentUpdate.
- #success? ⇒ Boolean
Constructor Details
#initialize(data) ⇒ PaymentUpdate
Returns a new instance of PaymentUpdate.
6 7 8 9 |
# File 'lib/payson_api/response/payment_update.rb', line 6 def initialize(data) @envelope = Envelope.parse(data) @errors = RemoteError.parse(data) end |
Instance Attribute Details
#envelope ⇒ Object
Returns the value of attribute envelope.
4 5 6 |
# File 'lib/payson_api/response/payment_update.rb', line 4 def envelope @envelope end |
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/payson_api/response/payment_update.rb', line 4 def errors @errors end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/payson_api/response/payment_update.rb', line 11 def success? @envelope.ack == 'SUCCESS' end |