Module: Zendesk::Entry

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

Instance Method Summary collapse

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

#update_entrie(id, input, options = {}) ⇒ Object



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

def update_entrie(id, input, options = {})
  body = {:update => Zendesk::Main.to_xml('entrie', input)}
  make_request("entries/#{id}", body, options)
end