Class: Clonk::Group
- Inherits:
-
Object
- Object
- Clonk::Group
- Defined in:
- lib/clonk/group.rb
Overview
Represents a group or subgroup within SSO.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(group_response) ⇒ Group
constructor
A new instance of Group.
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
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/clonk/group.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/clonk/group.rb', line 7 def name @name end |