Class: RedHaze::Group

Inherits:
Object
  • Object
show all
Includes:
Helpers::Resource
Defined in:
lib/red_haze/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::Resource

#delete_endpoint, #get_endpoint, included, #initialize, #put_endpoint, #sync, #url

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/red_haze/group.rb', line 5

def id
  @id
end

Instance Method Details

#contributorsObject



15
16
17
# File 'lib/red_haze/group.rb', line 15

def contributors
  get_endpoint("/contributors")
end

#membersObject



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

def members
  get_endpoint("/members")
end

#moderatorsObject



11
12
13
# File 'lib/red_haze/group.rb', line 11

def moderators
  get_endpoint("/moderators")
end

#usersObject



23
24
25
# File 'lib/red_haze/group.rb', line 23

def users
  get_endpoint("/users")
end