Sha256: e919daa71604974e79bab44a628db75374e79c0b195244cce6217e0aead0b1a7

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 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, [TrackerApi::Resources::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

1 entries across 1 versions & 1 rubygems

Version Path
tracker_api-0.2.10 lib/tracker_api/resources/iteration.rb