Class: TestNotifier::Stats
- Inherits:
-
Object
- Object
- TestNotifier::Stats
- Defined in:
- lib/test_notifier/stats.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(adapter, options = {}) ⇒ Stats
constructor
A new instance of Stats.
- #message ⇒ Object
- #status ⇒ Object
Constructor Details
#initialize(adapter, options = {}) ⇒ Stats
Returns a new instance of Stats.
7 8 9 10 |
# File 'lib/test_notifier/stats.rb', line 7 def initialize(adapter, = {}) @adapter = adapter = normalize() end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
5 6 7 |
# File 'lib/test_notifier/stats.rb', line 5 def adapter @adapter end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/test_notifier/stats.rb', line 5 def end |
Instance Method Details
#message ⇒ Object
17 18 19 20 |
# File 'lib/test_notifier/stats.rb', line 17 def = normalize() send("message_for_#{adapter}") end |
#status ⇒ Object
12 13 14 15 |
# File 'lib/test_notifier/stats.rb', line 12 def status = normalize() send("status_for_#{adapter}") end |