module KayakoClient::TroubleshooterStepAPI::ClassMethods
Public Instance Methods
all(step, options = {})
click to toggle source
Calls superclass method
# File lib/kayako_client/mixins/troubleshooter_step_api.rb, line 30 def all(step, options = {}) unless step.to_i > 0 logger.error "invalid :troubleshooter_step_id - #{step}" if logger raise ArgumentError, "invalid troubleshooter step ID" end super(options.merge(:e => "#{path}/ListAll/#{step.to_i}")) end
delete(step, id, options = {})
click to toggle source
Calls superclass method
# File lib/kayako_client/mixins/troubleshooter_step_api.rb, line 54 def delete(step, id, options = {}) unless step.to_i > 0 logger.error "invalid :troubleshooter_step_id - #{step}" if logger raise ArgumentError, "invalid troubleshooter step ID" end unless id.to_i > 0 logger.error "invalid :id - #{id}" if logger raise ArgumentError, "invalid ID" end super(id, options.merge(:e => "#{path}/#{step.to_i}/#{id.to_i}")) end
get(step, id, options = {})
click to toggle source
Calls superclass method
# File lib/kayako_client/mixins/troubleshooter_step_api.rb, line 38 def get(step, id, options = {}) unless step.to_i > 0 logger.error "invalid :troubleshooter_step_id - #{step}" if logger raise ArgumentError, "invalid troubleshooter step ID" end if id == :all all(step, options) else unless id.to_i > 0 logger.error "invalid :id - #{id}" if logger raise ArgumentError, "invalid ID" end super(id, options.merge(:e => "#{path}/#{step.to_i}/#{id.to_i}")) end end