Class | StateMachine::MachineCollection |
In: |
lib/state_machine/machine_collection.rb
|
Parent: | Hash |
Represents a collection of state machines for a class
Runs one or more events in parallel on the given object. See StateMachine::InstanceMethods#fire_events for more information.
Initializes the state of each machine in the given object. Initial values are only set if the machine‘s attribute doesn‘t already exist (which must mean the defaults are being skipped)
Builds the collection of transitions for all event attributes defined on the given object. This will only include events whose machine actions match the one specified.
These should only be fired as a result of the action being run.