Class: Worldline::Acquiring::SDK::V1::Domain::EmvDataItem
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::EmvDataItem
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/emv_data_item.rb
Instance Attribute Summary collapse
-
#tag ⇒ String
The current value of tag.
-
#value ⇒ String
The current value of value.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#tag ⇒ String
Returns the current value of tag.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/emv_data_item.rb', line 13 def tag @tag end |
#value ⇒ String
Returns the current value of value.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/emv_data_item.rb', line 13 def value @value end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/worldline/acquiring/sdk/v1/domain/emv_data_item.rb', line 27 def from_hash(hash) super if hash.has_key? 'tag' @tag = hash['tag'] end if hash.has_key? 'value' @value = hash['value'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/worldline/acquiring/sdk/v1/domain/emv_data_item.rb', line 20 def to_h hash = super hash['tag'] = @tag unless @tag.nil? hash['value'] = @value unless @value.nil? hash end |