Class: Clonk::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/clonk/group.rb

Overview

Represents a group or subgroup within SSO.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_response) ⇒ Group

Returns a new instance of Group.



9
10
11
12
# File 'lib/clonk/group.rb', line 9

def initialize(group_response)
  @name = group_response['name']
  @id = group_response['id']
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/clonk/group.rb', line 6

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/clonk/group.rb', line 7

def name
  @name
end