lib/ruby-lokalise-api/resources/task.rb in ruby-lokalise-api-1.1.0 vs lib/ruby-lokalise-api/resources/task.rb in ruby-lokalise-api-2.0.0
- old
+ new
@@ -1,12 +1,13 @@
module Lokalise
module Resources
class Task < Base
- class << self
- private
+ supports :update, :destroy
- def endpoint(project_id)
- "projects/#{project_id}/tasks"
+ class << self
+ def endpoint(project_id, task_id = nil)
+ path_from projects: project_id,
+ tasks: task_id
end
end
end
end
end