Class: RMachine::RetrieveStateValueNotifier

Inherits:
Object
  • Object
show all
Defined in:
lib/r_machine/notifiers/retrieve_state_value_notifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_templateObject (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