Module: Zendesk::Entry
- Included in:
- Main
- Defined in:
- lib/zendesk/entry.rb
Instance Method Summary collapse
- #create_entrie(input) ⇒ Object
- #delete_entrie(id) ⇒ Object
- #get_entries(forum_id) ⇒ Object
- #get_entry(id) ⇒ Object
- #update_entrie(id, input, options = {}) ⇒ Object
Instance Method Details
#create_entrie(input) ⇒ Object
12 13 14 |
# File 'lib/zendesk/entry.rb', line 12 def create_entrie(input) make_request("entries", :create => Zendesk::Main.to_xml('entrie', input)) end |
#delete_entrie(id) ⇒ Object
21 22 23 |
# File 'lib/zendesk/entry.rb', line 21 def delete_entrie(id) make_request("entries/#{id}", :destroy => true) end |
#get_entries(forum_id) ⇒ Object
4 5 6 |
# File 'lib/zendesk/entry.rb', line 4 def get_entries(forum_id) make_request("forums/#{forum_id}/entries") end |
#get_entry(id) ⇒ Object
8 9 10 |
# File 'lib/zendesk/entry.rb', line 8 def get_entry(id) make_request("entries/#{id}") end |