Class: OnlinePayments::SDK::Domain::CurrencyConversionInput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::CurrencyConversionInput
- Defined in:
- lib/onlinepayments/sdk/domain/currency_conversion_input.rb
Instance Attribute Summary collapse
-
#accepted_by_user ⇒ true/false
The current value of accepted_by_user.
-
#dcc_session_id ⇒ String
The current value of dcc_session_id.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#accepted_by_user ⇒ true/false
Returns the current value of accepted_by_user.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/currency_conversion_input.rb', line 11 def accepted_by_user @accepted_by_user end |
#dcc_session_id ⇒ String
Returns the current value of dcc_session_id.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/currency_conversion_input.rb', line 11 def dcc_session_id @dcc_session_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/currency_conversion_input.rb', line 23 def from_hash(hash) super @accepted_by_user = hash['acceptedByUser'] if hash.key? 'acceptedByUser' @dcc_session_id = hash['dccSessionId'] if hash.key? 'dccSessionId' end |
#to_h ⇒ Hash
16 17 18 19 20 21 |
# File 'lib/onlinepayments/sdk/domain/currency_conversion_input.rb', line 16 def to_h hash = super hash['acceptedByUser'] = @accepted_by_user unless @accepted_by_user.nil? hash['dccSessionId'] = @dcc_session_id unless @dcc_session_id.nil? hash end |