Class: Decider::Module::Evolve

Inherits:
Data
  • Object
show all
Defined in:
lib/decider.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



53
54
55
# File 'lib/decider.rb', line 53

def event
  @event
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



53
54
55
# File 'lib/decider.rb', line 53

def state
  @state
end

Class Method Details

.build(state, event) ⇒ Object



54
55
56
# File 'lib/decider.rb', line 54

def self.build(state, event)
  new(state: state, event: event)
end