Class: OnlinePayments::SDK::Domain::AcquirerSelectionInformation
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::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 OnlinePayments::SDK::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
26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 26 def from_hash(hash) super @fallback_level = hash['fallbackLevel'] if hash.key? 'fallbackLevel' @result = hash['result'] if hash.key? 'result' @rule_name = hash['ruleName'] if hash.key? 'ruleName' end |
#to_h ⇒ Hash
18 19 20 21 22 23 24 |
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 18 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 |