Class: CS::EndPoint::Group
- Inherits:
-
Object
- Object
- CS::EndPoint::Group
- Includes:
- CS::EndPoint
- Defined in:
- lib/cs/end_point/group.rb
Instance Attribute Summary
Attributes included from CS::EndPoint
Instance Method Summary collapse
-
#current_groups(options = {}) ⇒ Object
get groups that user belongs to.
-
#initialize(hash = {}) ⇒ Group
constructor
A new instance of Group.
Methods included from CS::EndPoint
#create, #create!, #delete, #delete!, #duplicate, #inspect, #parameter, #reload, #reload!, #retrieve, #retrieve!, #save, #save!, #to_parameters, #update, #update!, #url_for
Methods included from Serializer
Constructor Details
#initialize(hash = {}) ⇒ Group
Returns a new instance of Group.
15 16 17 |
# File 'lib/cs/end_point/group.rb', line 15 def initialize(hash={}) from_hash(hash) end |
Instance Method Details
#current_groups(options = {}) ⇒ Object
get groups that user belongs to
20 21 22 23 |
# File 'lib/cs/end_point/group.rb', line 20 def current_groups(={}) relation = Relation::GroupRelation.new(@session) relation.to_a end |