Class: BancoBrasilClientCredentials::ResponseToken

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/bb_oauth/models/response_token.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #_deserialize, #_to_hash, #build_from_hash, build_from_hash, #eql?, #hash, #initialize, openapi_nullable, #to_body, #to_hash, #to_s, #valid?

Constructor Details

This class inherits a constructor from BancoBrasilClientCredentials::BaseModel

Instance Attribute Details

#access_tokenObject

Token de Acesso



6
7
8
# File 'lib/bb_oauth/models/response_token.rb', line 6

def access_token
  @access_token
end

#expires_inObject

Tempo de Expiração do token



12
13
14
# File 'lib/bb_oauth/models/response_token.rb', line 12

def expires_in
  @expires_in
end

#token_typeObject

Tipo de token



9
10
11
# File 'lib/bb_oauth/models/response_token.rb', line 9

def token_type
  @token_type
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



15
16
17
# File 'lib/bb_oauth/models/response_token.rb', line 15

def self.attribute_map
  { access_token: :access_token, token_type: :token_type, expires_in: :expires_in }
end

.openapi_typesObject

Attribute type mapping.



20
21
22
# File 'lib/bb_oauth/models/response_token.rb', line 20

def self.openapi_types
  { access_token: :Object, token_type: :Object, expires_in: :Object }
end

Instance Method Details

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/bb_oauth/models/response_token.rb', line 26

def list_invalid_properties
  invalid_properties = Array.new
  if @access_token.nil?
    invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
  end

  if @token_type.nil?
    invalid_properties.push('invalid value for "token_type", token_type cannot be nil.')
  end

  if @expires_in.nil?
    invalid_properties.push('invalid value for "expires_in", expires_in cannot be nil.')
  end

  invalid_properties
end