Sha256: e7b77981eaa9f857d6a4b094892dff5f9fe5922e4bc08f519d3a6885d4fac2d3

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

module Milestoner
  module Commits
    module Enrichers
      # Enriches a commit review based on trailer information.
      class Review
        include Milestoner::Import[:input]

        def initialize(model: Models::Link, **)
          @model = model
          super(**)
        end

        def call(*) = model[id: "All", uri: format(input.review_uri, id: nil)]

        private

        attr_reader :model
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
milestoner-17.11.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.10.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.9.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.6.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.5.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.4.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.3.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.2.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.1.0 lib/milestoner/commits/enrichers/review.rb
milestoner-17.0.0 lib/milestoner/commits/enrichers/review.rb