Sha256: 7c4ff53135e3fb8e95b6bc3ab5ffeda69dc3821eb2e991bea403f9fbefb26538
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
module TrackerApi module Endpoints class Epics attr_accessor :client def initialize(client) @client = client end def get(project_id, params={}) data = client.request( method: :get, path: "/projects/#{project_id}/epics", params: params ).body 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracker_api-0.1.0 | lib/tracker_api/endpoints/epics.rb |