Class: Gitlab::Triage::Filters::NameConditionsFilter
Instance Method Summary
collapse
all_params_filter_names, filter_parameters, #initialize, params_check_for_field, params_checking_condition_type, params_checking_condition_value, params_filter_names, #validate_condition
Instance Method Details
#calculate ⇒ Object
22
23
24
|
# File 'lib/gitlab/triage/filters/name_conditions_filter.rb', line 22
def calculate
resource_value == condition_value
end
|
#condition_value ⇒ Object
18
19
20
|
# File 'lib/gitlab/triage/filters/name_conditions_filter.rb', line 18
def condition_value
@matching_name
end
|
#initialize_variables(matching_name) ⇒ Object
9
10
11
12
|
# File 'lib/gitlab/triage/filters/name_conditions_filter.rb', line 9
def initialize_variables(matching_name)
@attribute = :name
@matching_name = matching_name
end
|
#resource_value ⇒ Object
14
15
16
|
# File 'lib/gitlab/triage/filters/name_conditions_filter.rb', line 14
def resource_value
@resource[@attribute]
end
|