class Ingenico::Connect::SDK::Domain::Definitions::CardEssentials
@attr [String] card_number
@attr [String] expiry_date
Attributes
card_number[RW]
expiry_date[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/definitions/card_essentials.rb, line 27 def from_hash(hash) super if hash.has_key? 'cardNumber' @card_number = hash['cardNumber'] 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/definitions/card_essentials.rb, line 20 def to_h hash = super hash['cardNumber'] = @card_number unless @card_number.nil? hash['expiryDate'] = @expiry_date unless @expiry_date.nil? hash end