Class: WorkOS::UserApiKeyCreatedDataOwner

Inherits:
Types::BaseModel 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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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