Class: OnlinePayments::SDK::Domain::NetworkTokenLinked
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::NetworkTokenLinked
- Defined in:
- lib/onlinepayments/sdk/domain/network_token_linked.rb
Instance Attribute Summary collapse
-
#expiry_date ⇒ String
The current value of expiry_date.
-
#masked_token ⇒ String
The current value of masked_token.
-
#token_state ⇒ String
The current value of token_state.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#expiry_date ⇒ String
Returns the current value of expiry_date.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/network_token_linked.rb', line 12 def expiry_date @expiry_date end |
#masked_token ⇒ String
Returns the current value of masked_token.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/network_token_linked.rb', line 12 def masked_token @masked_token end |
#token_state ⇒ String
Returns the current value of token_state.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/network_token_linked.rb', line 12 def token_state @token_state end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/network_token_linked.rb', line 29 def from_hash(hash) super if hash.has_key? 'expiryDate' @expiry_date = hash['expiryDate'] end if hash.has_key? 'maskedToken' @masked_token = hash['maskedToken'] end if hash.has_key? 'tokenState' @token_state = hash['tokenState'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/network_token_linked.rb', line 21 def to_h hash = super hash['expiryDate'] = @expiry_date unless @expiry_date.nil? hash['maskedToken'] = @masked_token unless @masked_token.nil? hash['tokenState'] = @token_state unless @token_state.nil? hash end |