class Ingenico::Connect::SDK::Domain::Payment::RedirectionData

@attr [String] return_url @attr [String] variant

Attributes

return_url[RW]
variant[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/redirection_data.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'returnUrl'
    @return_url = hash['returnUrl']
  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/redirection_data.rb, line 20
def to_h
  hash = super
  hash['returnUrl'] = @return_url unless @return_url.nil?
  hash['variant'] = @variant unless @variant.nil?
  hash
end