Sha256: 8e4703a67001f1154c70b886a097d401da347930e8cc9b830f337ade19e05c0b

Contents?: true

Size: 523 Bytes

Versions: 64

Compression:

Stored size: 523 Bytes

Contents

require_relative 'base_conditions_filter'

module Gitlab
  module Triage
    module Filters
      class NameConditionsFilter < BaseConditionsFilter
        def initialize_variables(matching_name)
          @attribute = :name
          @matching_name = matching_name
        end

        def resource_value
          @resource[@attribute]
        end

        def condition_value
          @matching_name
        end

        def calculate
          resource_value == condition_value
        end
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
gitlab-triage-1.42.2 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.42.1 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.42.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.41.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.40.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.30.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.29.0 lib/gitlab/triage/filters/name_conditions_filter.rb
payping-gitlab-triage-0.1.3 lib/gitlab/triage/filters/name_conditions_filter.rb
payping-gitlab-triage-0.1.2 lib/gitlab/triage/filters/name_conditions_filter.rb
payping-gitlab-triage-0.1.1 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.28.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.27.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.26.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.25.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.24.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.23.1 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.23.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.22.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.21.0 lib/gitlab/triage/filters/name_conditions_filter.rb
gitlab-triage-1.20.0 lib/gitlab/triage/filters/name_conditions_filter.rb