Class: WorkOS::ApiKeyCreatedDataOwner

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/api_keys/api_key_created_data_owner.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  id: :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) ⇒ ApiKeyCreatedDataOwner

Returns a new instance of ApiKeyCreatedDataOwner.



16
17
18
19
20
# File 'lib/workos/api_keys/api_key_created_data_owner.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @type = hash[:type]
  @id = hash[:id]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/workos/api_keys/api_key_created_data_owner.rb', line 12

def id
  @id
end

#typeObject

Returns the value of attribute type.



12
13
14
# File 'lib/workos/api_keys/api_key_created_data_owner.rb', line 12

def type
  @type
end