Class: Controll::Notify::Message::Resolver
- Inherits:
-
Object
- Object
- Controll::Notify::Message::Resolver
- Defined in:
- lib/controll/notify/message/resolver.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#caller ⇒ Object
readonly
Returns the value of attribute caller.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(caller, message) ⇒ Resolver
constructor
A new instance of Resolver.
- #resolve ⇒ Object
Constructor Details
#initialize(caller, message) ⇒ Resolver
Returns a new instance of Resolver.
8 9 10 11 |
# File 'lib/controll/notify/message/resolver.rb', line 8 def initialize caller, @caller = caller @message = end |
Instance Attribute Details
#caller ⇒ Object (readonly)
Returns the value of attribute caller.
6 7 8 |
# File 'lib/controll/notify/message/resolver.rb', line 6 def caller @caller end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/controll/notify/message/resolver.rb', line 6 def @message end |
Instance Method Details
#resolve ⇒ Object
13 14 15 |
# File 'lib/controll/notify/message/resolver.rb', line 13 def resolve .translate? ? translator.translate : .handle end |