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