module KayakoClient::TroubleshooterStepClient
Public Instance Methods
comments(options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 43 def comments(options = {}) KayakoClient::TroubleshooterComment.all(id, options.merge(inherited_options)) if id end
delete_attachment(attachment, options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 36 def delete_attachment(attachment, options = {}) KayakoClient::TroubleshooterAttachment.delete(id, attachment, options.merge(inherited_options)) if id end
Also aliased as: destroy_attachment
delete_comment(comment, options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 68 def delete_comment(comment, options = {}) step_comment = get_comment(comment, options.merge(inherited_options)) step_comment.delete if step_comment end
Also aliased as: destroy_comment
get_attachment(attachment, options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 18 def get_attachment(attachment, options = {}) KayakoClient::TroubleshooterAttachment.get(id, attachment, options.merge(inherited_options)) if id end
Also aliased as: find_attachment
get_comment(comment, options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 47 def get_comment(comment, options = {}) if id value = KayakoClient::TroubleshooterComment.get(comment, options.merge(inherited_options)) value && value.troubleshooter_step_id == id ? value : nil end end
Also aliased as: find_comment
post_attachment(options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 24 def post_attachment(options = {}) if id if logger && options[:troubleshooter_step_id] && options[:troubleshooter_step_id].to_i != id logger.warn "overwriting :troubleshooter_step_id" end options[:troubleshooter_step_id] = id KayakoClient::TroubleshooterAttachment.post(options.merge(inherited_options)) end end
Also aliased as: create_attachment
post_comment(options = {})
click to toggle source
# File lib/kayako_client/mixins/troubleshooter_step_client.rb, line 56 def post_comment(options = {}) if id if logger && options[:troubleshooter_step_id] && options[:troubleshooter_step_id].to_i != id logger.warn "overwriting :troubleshooter_step_id" end options[:troubleshooter_step_id] = id KayakoClient::TroubleshooterComment.post(options.merge(inherited_options)) end end
Also aliased as: create_comment