Module: Zendesk::Group

Included in:
Main
Defined in:
lib/zendesk/group.rb

Instance Method Summary collapse

Instance Method Details

#create_group(input) ⇒ Object



12
13
14
# File 'lib/zendesk/group.rb', line 12

def create_group(input)
  make_request("groups", :create => Zendesk::Main.to_xml('group', input))
end

#delete_group(id) ⇒ Object



20
21
22
# File 'lib/zendesk/group.rb', line 20

def delete_group(id)
  make_request("groups/#{id}", :destroy => true)
end

#get_group(id) ⇒ Object



8
9
10
# File 'lib/zendesk/group.rb', line 8

def get_group(id)
  make_request("groups/#{id}")
end

#get_groupsObject



4
5
6
# File 'lib/zendesk/group.rb', line 4

def get_groups
  make_request("groups")
end

#update_group(input) ⇒ Object



16
17
18
# File 'lib/zendesk/group.rb', line 16

def update_group(input)
  make_request("groups", :update => Zendesk::Main.to_xml('group', input))
end