Class: WorkOS::OrganizationRoleCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::OrganizationRoleCreatedData
- Defined in:
- lib/workos/organizations/organization_role_created_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, organization_id: :organization_id, slug: :slug, name: :name, description: :description, resource_type_slug: :resource_type_slug, permissions: :permissions, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#resource_type_slug ⇒ Object
Returns the value of attribute resource_type_slug.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ OrganizationRoleCreatedData
constructor
A new instance of OrganizationRoleCreatedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ OrganizationRoleCreatedData
Returns a new instance of OrganizationRoleCreatedData.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 30 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @organization_id = hash[:organization_id] @slug = hash[:slug] @name = hash[:name] @description = hash[:description] @resource_type_slug = hash[:resource_type_slug] @permissions = hash[:permissions] || [] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def organization_id @organization_id end |
#permissions ⇒ Object
Returns the value of attribute permissions.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def @permissions end |
#resource_type_slug ⇒ Object
Returns the value of attribute resource_type_slug.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def resource_type_slug @resource_type_slug end |
#slug ⇒ Object
Returns the value of attribute slug.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def slug @slug end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
19 20 21 |
# File 'lib/workos/organizations/organization_role_created_data.rb', line 19 def updated_at @updated_at end |