class Ingenico::Direct::SDK::Domain::IINDetail
@attr [true/false] is_allowed_in_context
@attr [Integer] payment_product_id
Attributes
is_allowed_in_context[RW]
payment_product_id[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/iin_detail.rb, line 24 def from_hash(hash) super @is_allowed_in_context = hash['isAllowedInContext'] if hash.key? 'isAllowedInContext' @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/iin_detail.rb, line 17 def to_h hash = super hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil? hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash end