class Scale::Endpoints::Tasks::TaskEndpoint

Protected Instance Methods

build_task(response) click to toggle source
# File lib/scale/endpoints/tasks/task_endpoint.rb, line 12
def build_task(response)
  Resources::Task.new parse(response)
end
parse(response) click to toggle source
# File lib/scale/endpoints/tasks/task_endpoint.rb, line 16
def parse(response)
  JSON.parse(response.body) rescue response
end
path(p = '') click to toggle source
# File lib/scale/endpoints/tasks/task_endpoint.rb, line 8
def path(p = '')
  "task/#{p}"
end