Class: BancoBrasilClientCredentials::ResponseToken
- Defined in:
- lib/bb_oauth/models/response_token.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Token de Acesso.
-
#expires_in ⇒ Object
Tempo de Expiração do token.
-
#token_type ⇒ Object
Tipo de token.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
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_token ⇒ Object
Token de Acesso
6 7 8 |
# File 'lib/bb_oauth/models/response_token.rb', line 6 def access_token @access_token end |
#expires_in ⇒ Object
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_type ⇒ Object
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_map ⇒ Object
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_types ⇒ Object
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_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 |