Sha256: c8b1c95dfbab6e3dd34ea3f19e0db7dc7b8141b95856942c27b6ce17ef77a72d
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
module TrackerApi module Endpoints class Iterations attr_accessor :client def initialize(client) @client = client end def get(project_id, params={}) data = client.request( method: :get, path: "/projects/#{project_id}/iterations", params: params ).body raise TrackerApi::Errors::UnexpectedData, 'Array of iterations expected' unless data.is_a? Array data.map { |iteration| Resources::Iteration.new({ client: client }.merge(iteration)) } 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/iterations.rb |