class Ingenico::Direct::SDK::Domain::LoanRecipient
@attr [String] account_number
@attr [String] date_of_birth
@attr [String] partial_pan
@attr [String] surname @attr [String] zip
Attributes
account_number[RW]
date_of_birth[RW]
partial_pan[RW]
surname[RW]
zip[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/loan_recipient.rb, line 33 def from_hash(hash) super @account_number = hash['accountNumber'] if hash.key? 'accountNumber' @date_of_birth = hash['dateOfBirth'] if hash.key? 'dateOfBirth' @partial_pan = hash['partialPan'] if hash.key? 'partialPan' @surname = hash['surname'] if hash.key? 'surname' @zip = hash['zip'] if hash.key? 'zip' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/loan_recipient.rb, line 23 def to_h hash = super hash['accountNumber'] = @account_number unless @account_number.nil? hash['dateOfBirth'] = @date_of_birth unless @date_of_birth.nil? hash['partialPan'] = @partial_pan unless @partial_pan.nil? hash['surname'] = @surname unless @surname.nil? hash['zip'] = @zip unless @zip.nil? hash end