Class: Tpaga::Token

Inherits:
BaseObject show all
Defined in:
lib/tpaga/models/token.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash

Constructor Details

#initialize(attributes = {}) ⇒ Token

Returns a new instance of Token.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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

Instance Attribute Details

Returns the value of attribute skip_legal_id_check.



4
5
6
# File 'lib/tpaga/models/token.rb', line 4

def skip_legal_id_check
  @skip_legal_id_check
end

#tokenObject

Returns the value of attribute token.



4
5
6
# File 'lib/tpaga/models/token.rb', line 4

def token
  @token
end

#usedObject

Returns the value of attribute used.



4
5
6
# File 'lib/tpaga/models/token.rb', line 4

def used
  @used
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
# 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

.swagger_typesObject

attribute type



21
22
23
24
25
26
27
28
# File 'lib/tpaga/models/token.rb', line 21

def self.swagger_types
  {
    :'token' => :'String',
    :'skip_legal_id_check' => :'BOOLEAN',
    :'used' => :'BOOLEAN',
    
  }
end