Class: RMachine::RetrieveStateValueNotifier
- Inherits:
-
Object
- Object
- RMachine::RetrieveStateValueNotifier
- Defined in:
- lib/r_machine/notifiers/retrieve_state_value_notifier.rb
Instance Attribute Summary collapse
-
#state_template ⇒ Object
readonly
Returns the value of attribute state_template.
Instance Method Summary collapse
-
#initialize(params) ⇒ RetrieveStateValueNotifier
constructor
A new instance of RetrieveStateValueNotifier.
- #notify! ⇒ Object
Constructor Details
#initialize(params) ⇒ RetrieveStateValueNotifier
Returns a new instance of RetrieveStateValueNotifier.
5 6 7 |
# File 'lib/r_machine/notifiers/retrieve_state_value_notifier.rb', line 5 def initialize(params) @state_template = params[:state_template] end |
Instance Attribute Details
#state_template ⇒ Object (readonly)
Returns the value of attribute state_template.
3 4 5 |
# File 'lib/r_machine/notifiers/retrieve_state_value_notifier.rb', line 3 def state_template @state_template end |
Instance Method Details
#notify! ⇒ Object
9 10 11 |
# File 'lib/r_machine/notifiers/retrieve_state_value_notifier.rb', line 9 def notify! state_template.state end |