Class: OnlinePayments::SDK::Domain::OtherDetails
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::OtherDetails
- Defined in:
- lib/onlinepayments/sdk/domain/other_details.rb
Instance Attribute Summary collapse
-
#meta_data ⇒ String
The current value of meta_data.
-
#travel_data ⇒ String
The current value of travel_data.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#meta_data ⇒ String
Returns the current value of meta_data.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/other_details.rb', line 11 def @meta_data end |
#travel_data ⇒ String
Returns the current value of travel_data.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/other_details.rb', line 11 def travel_data @travel_data end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/other_details.rb', line 25 def from_hash(hash) super if hash.has_key? 'metaData' @meta_data = hash['metaData'] end if hash.has_key? 'travelData' @travel_data = hash['travelData'] end end |
#to_h ⇒ Hash
18 19 20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/other_details.rb', line 18 def to_h hash = super hash['metaData'] = @meta_data unless @meta_data.nil? hash['travelData'] = @travel_data unless @travel_data.nil? hash end |