Class: WorkOS::UserRoleAssignmentResource
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UserRoleAssignmentResource
- Defined in:
- lib/workos/authorization/user_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.
Instance Method Summary collapse
-
#initialize(json) ⇒ UserRoleAssignmentResource
constructor
A new instance of UserRoleAssignmentResource.
Constructor Details
#initialize(json) ⇒ UserRoleAssignmentResource
Returns a new instance of UserRoleAssignmentResource.
18 19 20 21 22 23 |
# File 'lib/workos/authorization/user_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/user_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/user_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/user_role_assignment_resource.rb', line 13 def resource_type_slug @resource_type_slug end |