Class: Guard::Unity::Notifier
- Inherits:
-
Object
- Object
- Guard::Unity::Notifier
- Defined in:
- lib/guard/unity/notifier.rb,
lib/guard/unity/notifier/cli.rb,
lib/guard/unity/notifier/alert.rb
Defined Under Namespace
Constant Summary collapse
- TITLE =
'Unity Tests Results'
Instance Attribute Summary collapse
-
#alert ⇒ Object
Returns the value of attribute alert.
-
#cli ⇒ Object
Returns the value of attribute cli.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Notifier
constructor
A new instance of Notifier.
- #notify(results) ⇒ Object
Constructor Details
Instance Attribute Details
#alert ⇒ Object
Returns the value of attribute alert.
10 11 12 |
# File 'lib/guard/unity/notifier.rb', line 10 def alert @alert end |
#cli ⇒ Object
Returns the value of attribute cli.
10 11 12 |
# File 'lib/guard/unity/notifier.rb', line 10 def cli @cli end |
Instance Method Details
#notify(results) ⇒ Object
17 18 19 20 |
# File 'lib/guard/unity/notifier.rb', line 17 def notify(results) alert.notify(results, TITLE) cli.notify(results) end |