Class: Controll::Notify::Message::Handler
- Inherits:
-
Object
- Object
- Controll::Notify::Message::Handler
- Defined in:
- lib/controll/notify/message/handler.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #handle ⇒ Object
-
#initialize(message) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(message) ⇒ Handler
Returns a new instance of Handler.
8 9 10 |
# File 'lib/controll/notify/message/handler.rb', line 8 def initialize @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/controll/notify/message/handler.rb', line 6 def @message end |
Instance Method Details
#handle ⇒ Object
12 13 14 15 16 |
# File 'lib/controll/notify/message/handler.rb', line 12 def handle return args? ? replace_args : .text rescue StandardError nil end |