Class: WorkOS::ClientApiTokenResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ClientApiTokenResponse
- Defined in:
- lib/workos/client_api/client_api_token_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ token: :token }.freeze
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ClientApiTokenResponse
constructor
A new instance of ClientApiTokenResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ ClientApiTokenResponse
Returns a new instance of ClientApiTokenResponse.
13 14 15 16 |
# File 'lib/workos/client_api/client_api_token_response.rb', line 13 def initialize(json) hash = self.class.normalize(json) @token = hash[:token] end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
11 12 13 |
# File 'lib/workos/client_api/client_api_token_response.rb', line 11 def token @token end |