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