Class: Pronto::Formatter::GithubStatusFormatter::StatusBuilder
- Inherits:
-
Object
- Object
- Pronto::Formatter::GithubStatusFormatter::StatusBuilder
- Defined in:
- lib/pronto/formatter/github_status_formatter/status_builder.rb
Instance Method Summary collapse
- #context ⇒ Object
- #description ⇒ Object
-
#initialize(runner, messages) ⇒ StatusBuilder
constructor
A new instance of StatusBuilder.
- #state ⇒ Object
Constructor Details
#initialize(runner, messages) ⇒ StatusBuilder
Returns a new instance of StatusBuilder.
7 8 9 10 |
# File 'lib/pronto/formatter/github_status_formatter/status_builder.rb', line 7 def initialize(runner, ) @runner = runner @messages = end |
Instance Method Details
#context ⇒ Object
21 22 23 |
# File 'lib/pronto/formatter/github_status_formatter/status_builder.rb', line 21 def context "pronto/#{@runner.title}" end |
#description ⇒ Object
12 13 14 15 |
# File 'lib/pronto/formatter/github_status_formatter/status_builder.rb', line 12 def description desc = map_description desc.empty? ? NO_ISSUES_DESCRIPTION : "Found #{desc}." end |
#state ⇒ Object
17 18 19 |
# File 'lib/pronto/formatter/github_status_formatter/status_builder.rb', line 17 def state failure? ? :failure : :success end |