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.
5 6 7 8 |
# File 'lib/test_notifier/stats.rb', line 5 def initialize(adapter, = {}) @adapter = adapter @options = normalize() end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
3 4 5 |
# File 'lib/test_notifier/stats.rb', line 3 def adapter @adapter end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/test_notifier/stats.rb', line 3 def @options end |
Instance Method Details
#message ⇒ Object
15 16 17 18 |
# File 'lib/test_notifier/stats.rb', line 15 def @options = normalize() send("message_for_#{adapter}") end |
#status ⇒ Object
10 11 12 13 |
# File 'lib/test_notifier/stats.rb', line 10 def status @options = normalize() send("status_for_#{adapter}") end |