class PaysonAPI::V1::Responses::PaymentUpdate

Attributes

envelope[RW]
errors[RW]

Public Class Methods

new(data) click to toggle source
# File lib/payson_api/v1/responses/payment_update.rb, line 9
def initialize(data)
  @envelope = PaysonAPI::V1::Envelope.parse(data)
  @errors = PaysonAPI::V1::RemoteError.parse(data)
end

Public Instance Methods

success?() click to toggle source
# File lib/payson_api/v1/responses/payment_update.rb, line 14
def success?
  @envelope.ack == 'SUCCESS'
end