class Ingenico::Connect::SDK::Domain::Definitions::InAuth

@attr [String] device_category @attr [String] device_id @attr [String] risk_score @attr [String] true_ip_address @attr [String] true_ip_address_country

Attributes

device_category[RW]
device_id[RW]
risk_score[RW]
true_ip_address[RW]
true_ip_address_country[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/definitions/in_auth.rb, line 39
def from_hash(hash)
  super
  if hash.has_key? 'deviceCategory'
    @device_category = hash['deviceCategory']
  end
  if hash.has_key? 'deviceId'
    @device_id = hash['deviceId']
  end
  if hash.has_key? 'riskScore'
    @risk_score = hash['riskScore']
  end
  if hash.has_key? 'trueIpAddress'
    @true_ip_address = hash['trueIpAddress']
  end
  if hash.has_key? 'trueIpAddressCountry'
    @true_ip_address_country = hash['trueIpAddressCountry']
  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/definitions/in_auth.rb, line 29
def to_h
  hash = super
  hash['deviceCategory'] = @device_category unless @device_category.nil?
  hash['deviceId'] = @device_id unless @device_id.nil?
  hash['riskScore'] = @risk_score unless @risk_score.nil?
  hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil?
  hash['trueIpAddressCountry'] = @true_ip_address_country unless @true_ip_address_country.nil?
  hash
end