Sha256: bea1dabdc7a9b8d93ba76ed27c4c2118888e5c029a5e501dbb1d2a7a358e098f

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 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
      attribute :velocity, Float
      attribute :points, Integer
      attribute :accepted_points, Integer
      attribute :effective_points, Float

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tracker_api-1.10.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.9.1 lib/tracker_api/resources/iteration.rb
tracker_api-1.9.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.8.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.7.1 lib/tracker_api/resources/iteration.rb
tracker_api-1.7.0 lib/tracker_api/resources/iteration.rb