module KatelloApi module Resources class Task < KatelloApi::Base def self.doc @doc ||= KatelloApi.doc['resources']["tasks"] end # @param [Hash] params a hash of params to be passed to the service # @option params [String] organization_id organization identifier # # @param [Hash] headers additional http headers def index(params = { }, headers = { }) check_params params, :allowed => true, :method => __method__ url, params = fill_params_in_url "/api/organizations/:organization_id/tasks", params call(:"get", url, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id task identifier # # @param [Hash] headers additional http headers def show(params = { }, headers = { }) check_params params, :allowed => true, :method => __method__ url, params = fill_params_in_url "/api/tasks/:id", params call(:"get", url, params, headers) end end end end