Method: OpenapiClient::TokenResponse#valid?
- Defined in:
- lib/openapi_client/models/token_response.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
153 154 155 156 157 158 159 160 161 162 |
# File 'lib/openapi_client/models/token_response.rb', line 153 def valid? return false if @access_token.nil? return false if @mode.nil? return false if @provider.nil? return false if @scopes.nil? return false if @token_type.nil? token_type_validator = EnumAttributeValidator.new('String', ["Bearer"]) return false unless token_type_validator.valid?(@token_type) true end |