Class: WorkOS::PatchGroupMemberships

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/groups/patch_group_memberships.rb

Constant Summary collapse

HASH_ATTRS =
{
  add: :add,
  remove: :remove
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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