Sha256: 0e66f26db749f0b80a764d822f75091429b17fbf0f65d245c31e93b98ea255e2

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

module PayPal::Common
  class ResponseEnvelope
    include PayPal::Common::Base

    attr_accessor :timestamp
    attr_accessor :ack
    attr_accessor :build
    attr_accessor :correlation_id

    def success?
      self.ack == 'Success'
    end

    def set_timestamp(value)
      self.timestamp = Time.parse(value)
    rescue
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paypal-payment-0.1.2 lib/paypal/common/response_envelope.rb