Sha256: 31f39d648962e056dadf907be2c6ecad9f6174bb00a8ad5931ddc1c8be7352c1
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
module TrackerApi module Endpoints class Epics attr_accessor :client def initialize(client) @client = client end def get(project_id, params={}) data = client.paginate("/projects/#{project_id}/epics", params: params) raise TrackerApi::Errors::UnexpectedData, 'Array of epics expected' unless data.is_a? Array data.map do |epic| Resources::Epic.new({ client: client, project_id: project_id }.merge(epic)) 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/epics.rb |