Module: Breacan::Client::Groups

Included in:
Breacan::Client
Defined in:
lib/breacan/client/groups.rb

Instance Method Summary collapse

Instance Method Details

#groups_archive(args) ⇒ Object



4
5
6
# File 'lib/breacan/client/groups.rb', line 4

def groups_archive(args)
  get 'groups.archive', query: args
end

#groups_create(args) ⇒ Object



8
9
10
# File 'lib/breacan/client/groups.rb', line 8

def groups_create(args)
  post 'groups.create', query: args
end

#groups_history(args) ⇒ Object



12
13
14
# File 'lib/breacan/client/groups.rb', line 12

def groups_history(args)
  get 'groups.history', query: args
end

#groups_info(args) ⇒ Object



16
17
18
# File 'lib/breacan/client/groups.rb', line 16

def groups_info(args)
  get 'groups.info', query: args
end

#groups_info_by_name(name) ⇒ Object



60
61
62
# File 'lib/breacan/client/groups.rb', line 60

def groups_info_by_name(name)
  groups_list.find { |ch| ch['name'] == name }
end

#groups_invite(args) ⇒ Object



20
21
22
# File 'lib/breacan/client/groups.rb', line 20

def groups_invite(args)
  post 'groups.invite', query: args
end

#groups_join(args) ⇒ Object



24
25
26
# File 'lib/breacan/client/groups.rb', line 24

def groups_join(args)
  post 'groups.join', query: args
end

#groups_kick(args) ⇒ Object



28
29
30
# File 'lib/breacan/client/groups.rb', line 28

def groups_kick(args)
  post 'groups.kick', query: args
end

#groups_leave(args) ⇒ Object



32
33
34
# File 'lib/breacan/client/groups.rb', line 32

def groups_leave(args)
  post 'groups.leave', query: args
end

#groups_listObject



36
37
38
# File 'lib/breacan/client/groups.rb', line 36

def groups_list
  get 'groups.list'
end

#groups_mark(args) ⇒ Object



40
41
42
# File 'lib/breacan/client/groups.rb', line 40

def groups_mark(args)
  post 'groups.mark', query: args
end

#groups_rename(args) ⇒ Object



44
45
46
# File 'lib/breacan/client/groups.rb', line 44

def groups_rename(args)
  post 'groups.rename', query: args
end

#groups_set_purpose(args) ⇒ Object



48
49
50
# File 'lib/breacan/client/groups.rb', line 48

def groups_set_purpose(args)
  post 'groups.setPurpose', query: args
end

#groups_set_topic(args) ⇒ Object



52
53
54
# File 'lib/breacan/client/groups.rb', line 52

def groups_set_topic(args)
  post 'groups.setTopic', query: args
end

#groups_unarchive(args) ⇒ Object



56
57
58
# File 'lib/breacan/client/groups.rb', line 56

def groups_unarchive(args)
  post 'groups.unarchive', query: args
end