class Ingenico::Direct::SDK::Domain::PersonalInformationToken
@attr [Ingenico::Direct::SDK::Domain::PersonalNameToken] name
Attributes
name[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_information_token.rb, line 22 def from_hash(hash) super if hash.key? 'name' raise TypeError, "value '%s' is not a Hash" % [hash['name']] unless hash['name'].is_a? Hash @name = Ingenico::Direct::SDK::Domain::PersonalNameToken.new_from_hash(hash['name']) end 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_information_token.rb, line 16 def to_h hash = super hash['name'] = @name.to_h if @name hash end