Class: Gitlab::Ci::Status::Build::Failed

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/failed.rb

Direct Known Subclasses

Gitlab::Ci::Status::Bridge::Failed

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Extended

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Status::Extended

Class Method Details

.matches?(build, user) ⇒ Boolean

Returns:

  • (Boolean)

42
43
44
# File 'lib/gitlab/ci/status/build/failed.rb', line 42

def self.matches?(build, user)
  build.failed?
end

.reasonsObject


46
47
48
# File 'lib/gitlab/ci/status/build/failed.rb', line 46

def self.reasons
  REASONS
end

Instance Method Details

#badge_tooltipObject


38
39
40
# File 'lib/gitlab/ci/status/build/failed.rb', line 38

def badge_tooltip
  base_message
end

#status_tooltipObject


34
35
36
# File 'lib/gitlab/ci/status/build/failed.rb', line 34

def status_tooltip
  base_message
end