Sha256: be916a866ce6049cdcff3074dec57e552c3f8995a216dca9fa96dd6e7d69247d
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 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 TrackerApi::Errors::UnexpectedData, 'Array of tasks expected' unless data.is_a? Array data.map do |task| Resources::Task.new({ client: client, project_id: project_id }.merge(task)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracker_api-0.2.6 | lib/tracker_api/endpoints/tasks.rb |