Class: OnlinePayments::SDK::Domain::AcquirerSelectionInformation

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/acquirer_selection_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#fallback_levelInteger

Returns the current value of fallback_level.

Returns:

  • (Integer)

    the current value of fallback_level



12
13
14
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12

def fallback_level
  @fallback_level
end

#resultString

Returns the current value of result.

Returns:

  • (String)

    the current value of result



12
13
14
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12

def result
  @result
end

#rule_nameString

Returns the current value of rule_name.

Returns:

  • (String)

    the current value of rule_name



12
13
14
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12

def rule_name
  @rule_name
end

Instance Method Details

#from_hash(hash) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 29

def from_hash(hash)
  super
  if hash.has_key? 'fallbackLevel'
    @fallback_level = hash['fallbackLevel']
  end
  if hash.has_key? 'result'
    @result = hash['result']
  end
  if hash.has_key? 'ruleName'
    @rule_name = hash['ruleName']
  end
end

#to_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
27
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 21

def to_h
  hash = super
  hash['fallbackLevel'] = @fallback_level unless @fallback_level.nil?
  hash['result'] = @result unless @result.nil?
  hash['ruleName'] = @rule_name unless @rule_name.nil?
  hash
end