class Tpaga::Token

Attributes

token[RW]
used[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/tpaga/models/token.rb, line 6
def self.attribute_map
  {
    
    # The token identification
    :'token' => :'token',

    :'skip_legal_id_check' => :'skipLegalIdCheck',
    
    # If the token was already used
    :'used' => :'used'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/tpaga/models/token.rb, line 30
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'token']
    @token = attributes[:'token']
  end

  if attributes[:'skipLegalIdCheck']
    @skip_legal_id_check = attributes[:'skipLegalIdCheck']
  end
  
  if attributes[:'used']
    @used = attributes[:'used']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/tpaga/models/token.rb, line 21
def self.swagger_types
  {
    :'token' => :'String',
    :'skip_legal_id_check' => :'BOOLEAN',
    :'used' => :'BOOLEAN',
    
  }
end