Class: Worldline::Acquiring::SDK::V1::Domain::PointOfSaleData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::PointOfSaleData
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb
Instance Attribute Summary collapse
-
#terminal_id ⇒ String
The current value of terminal_id.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#terminal_id ⇒ String
Returns the current value of terminal_id.
12 13 14 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb', line 12 def terminal_id @terminal_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb', line 23 def from_hash(hash) super if hash.has_key? 'terminalId' @terminal_id = hash['terminalId'] end end |
#to_h ⇒ Hash
17 18 19 20 21 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb', line 17 def to_h hash = super hash['terminalId'] = @terminal_id unless @terminal_id.nil? hash end |