class Ingenico::Direct::SDK::Domain::MobilePaymentData
@attr [String] dpan @attr [String] expiry_date
Attributes
dpan[RW]
expiry_date[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/mobile_payment_data.rb, line 24 def from_hash(hash) super @dpan = hash['dpan'] if hash.key? 'dpan' @expiry_date = hash['expiryDate'] if hash.key? 'expiryDate' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/mobile_payment_data.rb, line 17 def to_h hash = super hash['dpan'] = @dpan unless @dpan.nil? hash['expiryDate'] = @expiry_date unless @expiry_date.nil? hash end