Sha256: 2e5df5a87977e3408d90e19d7cafe57ce0d2ef8df42e91f5f0dee725f2e23a37
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
module TrackerApi module Endpoints class Tasks attr_accessor :client def initialize(client) @client = client end def get(project_id, story_id, params={}) data = client.paginate("/projects/#{project_id}/stories/#{story_id}/tasks", params: params) raise Errors::UnexpectedData, 'Array of tasks expected' unless data.is_a? Array data.map do |task| Resources::Task.new({ story_id: story_id }.merge(task)) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tracker_api-1.0.0 | lib/tracker_api/endpoints/tasks.rb |
tracker_api-0.2.12 | lib/tracker_api/endpoints/tasks.rb |
tracker_api-0.2.11 | lib/tracker_api/endpoints/tasks.rb |