Sha256: 6462b82ca57e2a94db5518b7138e2cee7b6fdac05987d08fd8fc357c82835674

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 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[:settings]

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

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

        private

        attr_reader :model
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
milestoner-18.12.0 lib/milestoner/commits/enrichers/review.rb