Class: CheckoutSdk::Metadata::TokenMetadataSource

Inherits:
MetadataSource show all
Defined in:
lib/checkout_sdk/metadata/source/token_metadata_source.rb

Instance Attribute Summary collapse

Attributes inherited from MetadataSource

#type

Instance Method Summary collapse

Constructor Details

#initializeTokenMetadataSource

Returns a new instance of TokenMetadataSource.



10
11
12
# File 'lib/checkout_sdk/metadata/source/token_metadata_source.rb', line 10

def initialize
  super MetadataSourceType::TOKEN
end

Instance Attribute Details

#tokenString

Returns:

  • (String)


7
8
9
10
11
12
13
# File 'lib/checkout_sdk/metadata/source/token_metadata_source.rb', line 7

class TokenMetadataSource < MetadataSource
  attr_accessor :token

  def initialize
    super MetadataSourceType::TOKEN
  end
end