class Ingenico::Direct::SDK::Domain::PersonalNameToken
@attr [String] first_name
@attr [String] surname
Attributes
first_name[RW]
surname[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/personal_name_token.rb, line 24 def from_hash(hash) super @first_name = hash['firstName'] if hash.key? 'firstName' @surname = hash['surname'] if hash.key? 'surname' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/personal_name_token.rb, line 17 def to_h hash = super hash['firstName'] = @first_name unless @first_name.nil? hash['surname'] = @surname unless @surname.nil? hash end