Exception: Howler::Message::Notify
- Defined in:
- lib/howler/exceptions/notify.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(cause, options = {}) ⇒ Notify
constructor
A new instance of Notify.
Methods inherited from Error
Constructor Details
#initialize(cause, options = {}) ⇒ Notify
Returns a new instance of Notify.
5 6 7 8 9 10 11 12 13 |
# File 'lib/howler/exceptions/notify.rb', line 5 def initialize(cause, = {}) super() @cause = cause @env = { 'hostname' => `hostname`.chomp, 'ruby_version' => `ruby -v`.chomp } end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
3 4 5 |
# File 'lib/howler/exceptions/notify.rb', line 3 def cause @cause end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/howler/exceptions/notify.rb', line 3 def env @env end |