Sha256: e4817332337294de12dde05f01363cfd8cbac196002e7ae70395f692d7a3bb50
Contents?: true
Size: 473 Bytes
Versions: 6
Compression:
Stored size: 473 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 { |epic| Resources::Epic.new({ client: client }.merge(epic)) } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems