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