Class: Gitlab::Ci::Matching::BuildMatcher
- Inherits:
-
Object
- Object
- Gitlab::Ci::Matching::BuildMatcher
- Defined in:
- lib/gitlab/ci/matching/build_matcher.rb
Constant Summary collapse
- ATTRIBUTES =
%i[ protected tag_list build_ids project ].freeze
Instance Method Summary collapse
- #has_tags? ⇒ Boolean
-
#initialize(params) ⇒ BuildMatcher
constructor
A new instance of BuildMatcher.
Constructor Details
#initialize(params) ⇒ BuildMatcher
Returns a new instance of BuildMatcher.
17 18 19 20 21 |
# File 'lib/gitlab/ci/matching/build_matcher.rb', line 17 def initialize(params) ATTRIBUTES.each do |attribute| instance_variable_set("@#{attribute}", params.fetch(attribute)) end end |
Instance Method Details
#has_tags? ⇒ Boolean
23 24 25 |
# File 'lib/gitlab/ci/matching/build_matcher.rb', line 23 def tag_list.present? end |