module KayakoClient::TicketClient
Public Class Methods
included(base)
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 18 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
attachments(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 23 def attachments(options = {}) KayakoClient::TicketAttachment.all(id, options.merge(inherited_options)) if id end
custom_fields(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 52 def custom_fields(options = {}) KayakoClient::TicketCustomField.get(id, options.merge(inherited_options)) if id end
delete_attachment(attachment, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 45 def delete_attachment(attachment, options = {}) KayakoClient::TicketAttachment.delete(id, attachment, options.merge(inherited_options)) if id end
Also aliased as: destroy_attachment
delete_note(note, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 91 def delete_note(note, options = {}) KayakoClient::TicketNote.delete(id, note, options.merge(inherited_options)) if id end
Also aliased as: destroy_note
delete_post(post, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 116 def delete_post(post, options = {}) KayakoClient::TicketPost.delete(id, post, options.merge(inherited_options)) if id end
Also aliased as: destroy_post
delete_time_track(track, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 145 def delete_time_track(track, options = {}) KayakoClient::TicketTimeTrack.delete(id, track, options.merge(inherited_options)) if id end
Also aliased as: destroy_time_track
get_attachment(attachment, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 27 def get_attachment(attachment, options = {}) KayakoClient::TicketAttachment.get(id, attachment, options.merge(inherited_options)) if id end
Also aliased as: find_attachment
get_note(note, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 73 def get_note(note, options = {}) KayakoClient::TicketNote.get(id, note, options.merge(inherited_options)) if id end
Also aliased as: find_note
get_post(post, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 98 def get_post(post, options = {}) KayakoClient::TicketPost.get(id, post, options.merge(inherited_options)) if id end
Also aliased as: find_post
get_time_track(track, options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 127 def get_time_track(track, options = {}) KayakoClient::TicketTimeTrack.get(id, track, options.merge(inherited_options)) if id end
Also aliased as: find_time_track
notes(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 69 def notes(options = {}) KayakoClient::TicketNote.all(id, options.merge(inherited_options)) if id end
post_attachment(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 33 def post_attachment(options = {}) if id if logger && options[:ticket_id] && options[:ticket_id].to_i != id logger.warn "overwriting :ticket_id" end options[:ticket_id] = id KayakoClient::TicketAttachment.post(options.merge(inherited_options)) end end
Also aliased as: create_attachment
post_custom_fields(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 56 def post_custom_fields(options = {}) if id if logger && options[:ticket_id] && options[:ticket_id].to_i != id logger.warn "overwriting :ticket_id" end options[:ticket_id] = id KayakoClient::TicketCustomField.post(options.merge(inherited_options)) end end
Also aliased as: create_custom_fields
post_note(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 79 def post_note(options = {}) if id if logger && options[:ticket_id] && options[:ticket_id].to_i != id logger.warn "overwriting :ticket_id" end options[:ticket_id] = id KayakoClient::TicketNote.post(options.merge(inherited_options)) end end
Also aliased as: create_note
post_post(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 104 def post_post(options = {}) if id if logger && options[:ticket_id] && options[:ticket_id].to_i != id logger.warn "overwriting :ticket_id" end options[:ticket_id] = id KayakoClient::TicketPost.post(options.merge(inherited_options)) end end
Also aliased as: create_post
post_time_track(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 133 def post_time_track(options = {}) if id if logger && options[:ticket_id] && options[:ticket_id].to_i != id logger.warn "overwriting :ticket_id" end options[:ticket_id] = id KayakoClient::TicketTimeTrack.post(options.merge(inherited_options)) end end
Also aliased as: create_time_track
time_tracks(options = {})
click to toggle source
# File lib/kayako_client/mixins/ticket_client.rb, line 123 def time_tracks(options = {}) KayakoClient::TicketTimeTrack.all(id, options.merge(inherited_options)) if id end