Class: WorkOS::RoleAssignmentResource
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::RoleAssignmentResource
- Defined in:
- lib/workos/authorization/role_assignment_resource.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, external_id: :external_id, resource_type_slug: :resource_type_slug }.freeze
Instance Attribute Summary collapse
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#resource_type_slug ⇒ Object
Returns the value of attribute resource_type_slug.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ RoleAssignmentResource
constructor
A new instance of RoleAssignmentResource.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ RoleAssignmentResource
Returns a new instance of RoleAssignmentResource.
18 19 20 21 22 23 |
# File 'lib/workos/authorization/role_assignment_resource.rb', line 18 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @external_id = hash[:external_id] @resource_type_slug = hash[:resource_type_slug] end |
Instance Attribute Details
#external_id ⇒ Object
Returns the value of attribute external_id.
13 14 15 |
# File 'lib/workos/authorization/role_assignment_resource.rb', line 13 def external_id @external_id end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/workos/authorization/role_assignment_resource.rb', line 13 def id @id end |
#resource_type_slug ⇒ Object
Returns the value of attribute resource_type_slug.
13 14 15 |
# File 'lib/workos/authorization/role_assignment_resource.rb', line 13 def resource_type_slug @resource_type_slug end |