class Ingenico::Direct::SDK::Domain::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
# File lib/ingenico/direct/sdk/domain/hosted_checkout_specific_output.rb, line 24
def from_hash(hash)
  super
  @hosted_checkout_id = hash['hostedCheckoutId'] if hash.key? 'hostedCheckoutId'
  @variant = hash['variant'] if hash.key? 'variant'
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/hosted_checkout_specific_output.rb, line 17
def to_h
  hash = super
  hash['hostedCheckoutId'] = @hosted_checkout_id unless @hosted_checkout_id.nil?
  hash['variant'] = @variant unless @variant.nil?
  hash
end