Class: WorkOS::UserRoleAssignmentSource

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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

#typeObject

Returns the value of attribute type.



12
13
14
# File 'lib/workos/authorization/user_role_assignment_source.rb', line 12

def type
  @type
end