Sha256: 6cb869784b539a48e8b7b003a49e26f634a30000ee970f811deb98142d0bb2f0

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 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, Shared::Collection[Story]
      attribute :story_ids, Shared::Collection[Integer]
      attribute :team_strength, Float

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracker_api-1.1.0 lib/tracker_api/resources/iteration.rb
tracker_api-1.0.0 lib/tracker_api/resources/iteration.rb