Class: TestTrack::MisconfigurationNotifier::Wrapper
- Inherits:
-
Object
- Object
- TestTrack::MisconfigurationNotifier::Wrapper
- Defined in:
- app/models/test_track/misconfiguration_notifier.rb
Instance Attribute Summary collapse
-
#underlying ⇒ Object
readonly
Returns the value of attribute underlying.
Instance Method Summary collapse
-
#initialize(underlying = Null.new) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #notify(msg) ⇒ Object
Constructor Details
Instance Attribute Details
#underlying ⇒ Object (readonly)
Returns the value of attribute underlying.
3 4 5 |
# File 'app/models/test_track/misconfiguration_notifier.rb', line 3 def @underlying end |
Instance Method Details
#notify(msg) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/models/test_track/misconfiguration_notifier.rb', line 9 def notify(msg) raise msg if Rails.env.development? Rails.logger.error(msg) .notify(msg) end |