class Ingenico::Connect::SDK::Domain::Payment::PaymentProduct3201SpecificOutput
@attr [Ingenico::Connect::SDK::Domain::Definitions::CardEssentials] card
Attributes
card[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/payment/payment_product3201_specific_output.rb, line 24 def from_hash(hash) super if hash.has_key? 'card' raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash @card = Ingenico::Connect::SDK::Domain::Definitions::CardEssentials.new_from_hash(hash['card']) 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/payment/payment_product3201_specific_output.rb, line 18 def to_h hash = super hash['card'] = @card.to_h unless @card.nil? hash end