Class: CommitStatusPresenter

Inherits:
Gitlab::View::Presenter::Delegated show all
Defined in:
app/presenters/commit_status_presenter.rb

Instance Attribute Summary

Attributes included from Gitlab::View::Presenter::Base

#subject

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Gitlab::View::Presenter::Delegated

#initialize

Methods included from Gitlab::View::Presenter::Base

#can?, #declarative_policy_delegate, #is_a?, #present, #url_builder, #web_path, #web_url

Methods included from Gitlab::Allowable

#can?

Methods included from Gitlab::Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

This class inherits a constructor from Gitlab::View::Presenter::Delegated

Class Method Details

.callout_failure_messagesObject


31
32
33
# File 'app/presenters/commit_status_presenter.rb', line 31

def self.callout_failure_messages
  CALLOUT_FAILURE_MESSAGES
end

Instance Method Details

#callout_failure_messageObject


35
36
37
# File 'app/presenters/commit_status_presenter.rb', line 35

def callout_failure_message
  self.class.callout_failure_messages.fetch(failure_reason.to_sym)
end