Class: WorkOS::ApiKeyCreatedDataOwner
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ApiKeyCreatedDataOwner
- 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
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ApiKeyCreatedDataOwner
constructor
A new instance of ApiKeyCreatedDataOwner.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#id ⇒ Object
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 |
#type ⇒ Object
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 |