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



20
21
22
# File 'lib/zendesk/entry.rb', line 20

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(input) ⇒ Object



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

def update_entrie(input)
  make_request("entries", :update => Zendesk::Main.to_xml('entrie', input))
end