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