Class: WorkOS::ResourceExportCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ResourceExportCreatedData
- Defined in:
- lib/workos/shared/resource_export_created_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, resource_type: :resource_type }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#resource_type ⇒ Object
Returns the value of attribute resource_type.
Instance Method Summary collapse
-
#initialize(json) ⇒ ResourceExportCreatedData
constructor
A new instance of ResourceExportCreatedData.
Constructor Details
#initialize(json) ⇒ ResourceExportCreatedData
Returns a new instance of ResourceExportCreatedData.
16 17 18 19 20 |
# File 'lib/workos/shared/resource_export_created_data.rb', line 16 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @resource_type = hash[:resource_type] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/workos/shared/resource_export_created_data.rb', line 12 def id @id end |
#resource_type ⇒ Object
Returns the value of attribute resource_type.
12 13 14 |
# File 'lib/workos/shared/resource_export_created_data.rb', line 12 def resource_type @resource_type end |