class Ingenico::Direct::SDK::Domain::GetIINDetailsRequest
@attr [String] bin @attr [Ingenico::Direct::SDK::Domain::PaymentContext] payment_context
Attributes
bin[RW]
payment_context[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/get_iin_details_request.rb, line 25 def from_hash(hash) super @bin = hash['bin'] if hash.key? 'bin' if hash.key? 'paymentContext' raise TypeError, "value '%s' is not a Hash" % [hash['paymentContext']] unless hash['paymentContext'].is_a? Hash @payment_context = Ingenico::Direct::SDK::Domain::PaymentContext.new_from_hash(hash['paymentContext']) 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/get_iin_details_request.rb, line 18 def to_h hash = super hash['bin'] = @bin unless @bin.nil? hash['paymentContext'] = @payment_context.to_h if @payment_context hash end