class Ingenico::Connect::SDK::Domain::Payment::MobilePaymentData

@attr [String] dpan @attr [String] expiry_date

Attributes

dpan[RW]
expiry_date[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'dpan'
    @dpan = hash['dpan']
  end
  if hash.has_key? 'expiryDate'
    @expiry_date = hash['expiryDate']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb, line 20
def to_h
  hash = super
  hash['dpan'] = @dpan unless @dpan.nil?
  hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
  hash
end