Class: CS::EndPoint::Group

Inherits:
Object
  • Object
show all
Includes:
CS::EndPoint
Defined in:
lib/cs/end_point/group.rb

Instance Attribute Summary

Attributes included from CS::EndPoint

#session

Instance Method Summary collapse

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

#from_hash, #to_h

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(options={})
  relation = Relation::GroupRelation.new(@session)
  relation.to_a
end