class Ingenico::Connect::SDK::Domain::Payment::HostedCheckoutSpecificOutput
@attr [String] hosted_checkout_id
@attr [String] variant
Attributes
hosted_checkout_id[RW]
variant[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/hosted_checkout_specific_output.rb, line 27 def from_hash(hash) super if hash.has_key? 'hostedCheckoutId' @hosted_checkout_id = hash['hostedCheckoutId'] end if hash.has_key? 'variant' @variant = hash['variant'] 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/hosted_checkout_specific_output.rb, line 20 def to_h hash = super hash['hostedCheckoutId'] = @hosted_checkout_id unless @hosted_checkout_id.nil? hash['variant'] = @variant unless @variant.nil? hash end