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