Sha256: 0a4e1916a7219b6dcc3fe1898ef461b3c395787807a5e2ff3c53b46350f35b21

Contents?: true

Size: 603 Bytes

Versions: 9

Compression:

Stored size: 603 Bytes

Contents

module TrackerApi
  module Resources
    class Iteration
      include Virtus.model
      include Equalizer.new(:number, :project_id)

      attribute :client

      attribute :finish, DateTime
      attribute :kind, String
      attribute :length, Integer
      attribute :number, Integer
      attribute :planned, Boolean
      attribute :project_id, Integer
      attribute :start, DateTime
      attribute :stories, [Story]
      attribute :story_ids, [Integer]
      attribute :team_strength, Float

      def stories=(data)
        super.each { |s| s.client = client }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tracker_api-1.6.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.5.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.4.1 lib/tracker_api/resources/iteration.rb
tracker_api-1.4.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.3.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.2.1 lib/tracker_api/resources/iteration.rb
tracker_api-1.1.1 lib/tracker_api/resources/iteration.rb
tracker_api-0.2.12 lib/tracker_api/resources/iteration.rb
tracker_api-0.2.11 lib/tracker_api/resources/iteration.rb