class Height::API::Tasks
Public Class Methods
get(id_or_index)
click to toggle source
# File lib/height/api/tasks.rb, line 13 def get(id_or_index) res = Height::Request.get("tasks/#{id_or_index}") Height::Response.parse(res.body) end
search(filter, incl = nil)
click to toggle source
# File lib/height/api/tasks.rb, line 3 def search(filter, incl = nil) query = { 'filters' => filter.to_json } query.merge!({ 'include' => incl.to_json }) if incl res = Height::Request.get('tasks', query) Height::ListResponse.parse(res.body) end
update_task(id_or_index, data)
click to toggle source
# File lib/height/api/tasks.rb, line 19 def update_task(id_or_index, data) res = Height::Request.put("tasks/#{id_or_index}", data) Height::Response.parse(res.body) end