Class: WorkOS::UserApiKeyCreatedDataOwner

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#idObject

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_idObject

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

#typeObject

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