Class: Ingenico::Direct::SDK::Domain::ExternalTokenLinked

Inherits:
Ingenico::Direct::SDK::DataObject show all
Defined in:
lib/ingenico/direct/sdk/domain/external_token_linked.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Direct::SDK::DataObject

new_from_hash

Instance Attribute Details

#gts_computed_tokenString

Returns the current value of gts_computed_token.

Returns:

  • (String)

    the current value of gts_computed_token



11
12
13
# File 'lib/ingenico/direct/sdk/domain/external_token_linked.rb', line 11

def gts_computed_token
  @gts_computed_token
end

Instance Method Details

#from_hash(hash) ⇒ Object



21
22
23
24
# File 'lib/ingenico/direct/sdk/domain/external_token_linked.rb', line 21

def from_hash(hash)
  super
  @gts_computed_token = hash['GTSComputedToken'] if hash.key? 'GTSComputedToken'
end

#to_hHash

Returns:

  • (Hash)


15
16
17
18
19
# File 'lib/ingenico/direct/sdk/domain/external_token_linked.rb', line 15

def to_h
  hash = super
  hash['GTSComputedToken'] = @gts_computed_token unless @gts_computed_token.nil?
  hash
end