Module: Zendesk::Forum

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

Instance Method Summary collapse

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_forumsObject



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

def get_forums
  make_request("forums")
end

#update_forum(input) ⇒ Object



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

def update_forum(input)
  make_request("forums", :update => Zendesk::Main.to_xml('forum', input))
end