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