Module: Zendesk::Forum
- Included in:
- Main
- Defined in:
- lib/zendesk/forum.rb
Instance Method Summary collapse
- #create_forum(input) ⇒ Object
- #delete_forum(id) ⇒ Object
- #get_forum(id) ⇒ Object
- #get_forums ⇒ Object
- #update_forum(input) ⇒ Object
Instance Method Details
#create_forum(input) ⇒ Object
12 13 14 |
# File 'lib/zendesk/forum.rb', line 12 def create_forum(input) make_request("forums", :create => Zendesk::Main.to_xml('forum', input)) end |
#delete_forum(id) ⇒ Object
20 21 22 |
# File 'lib/zendesk/forum.rb', line 20 def delete_forum(id) make_request("forums/#{id}", :destroy => true) end |
#get_forum(id) ⇒ Object
8 9 10 |
# File 'lib/zendesk/forum.rb', line 8 def get_forum(id) make_request("forums/#{id}") end |
#get_forums ⇒ Object
4 5 6 |
# File 'lib/zendesk/forum.rb', line 4 def get_forums make_request("forums") end |