Module: Zendesk::Group
- Included in:
- Main
- Defined in:
- lib/zendesk/group.rb
Instance Method Summary collapse
- #create_group(input) ⇒ Object
- #delete_group(id) ⇒ Object
- #get_group(id) ⇒ Object
- #get_groups ⇒ Object
- #update_group(input) ⇒ Object
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_groups ⇒ Object
4 5 6 |
# File 'lib/zendesk/group.rb', line 4 def get_groups make_request("groups") end |