Sha256: ec7638a28538e02d3d9e2800e544ffe6248e2e321a90a5a6f2841b7355f05103

Contents?: true

Size: 864 Bytes

Versions: 8

Compression:

Stored size: 864 Bytes

Contents

module TrackerApi
  module Resources
    class Release
      include Shared::Base

      attribute :client

      attribute :project_id, Integer
      attribute :name, String
      attribute :description, String
      attribute :current_state, String # (accepted, delivered, finished, started, rejected, planned, unstarted, unscheduled)
      attribute :accepted_at, DateTime
      attribute :deadline, DateTime
      attribute :labels, [Label]
      attribute :created_at, DateTime
      attribute :updated_at, DateTime
      attribute :url, String
      attribute :kind, String

      # Provides a list of all the stories in the release.
      #
      # @param [Hash] params
      # @return [Array[Story]] stories of this release
      def stories(params={})
        Endpoints::Stories.new(client).get_release(project_id, id, params)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tracker_api-1.16.0 lib/tracker_api/resources/release.rb
tracker_api-1.15.0 lib/tracker_api/resources/release.rb
tracker_api-1.14.0 lib/tracker_api/resources/release.rb
tracker_api-1.13.0 lib/tracker_api/resources/release.rb
tracker_api-1.12.0 lib/tracker_api/resources/release.rb
tracker_api-1.11.0 lib/tracker_api/resources/release.rb
tracker_api-1.10.0 lib/tracker_api/resources/release.rb
tracker_api-1.9.1 lib/tracker_api/resources/release.rb