Class: OnlinePayments::SDK::Domain::AcquirerSelectionInformation
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::AcquirerSelectionInformation
- Defined in:
- lib/onlinepayments/sdk/domain/acquirer_selection_information.rb
Instance Attribute Summary collapse
-
#fallback_level ⇒ Integer
The current value of fallback_level.
-
#result ⇒ String
The current value of result.
-
#rule_name ⇒ String
The current value of rule_name.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#fallback_level ⇒ Integer
Returns 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 |
#result ⇒ String
Returns the current value of result.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12 def result @result end |
#rule_name ⇒ String
Returns 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_h ⇒ 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 |