Class: Mio::Model::Workflow::Transition
- Inherits:
-
Mio::Model
- Object
- Mio::Model
- Mio::Model::Workflow::Transition
- Defined in:
- lib/mio/model/workflow/transition.rb
Instance Attribute Summary
Attributes inherited from Mio::Model
Instance Method Summary collapse
Methods inherited from Mio::Model
#configure, #create, field, #go, #initialize, mappings, nested, #set_enable, set_resource, #set_start, #validate
Constructor Details
This class inherits a constructor from Mio::Model
Instance Method Details
#create_hash ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mio/model/workflow/transition.rb', line 13 def create_hash h = {name: "from #{@args.from} to #{@args.to}", from: @args.from, to: @args.to} unless @args.name == '' h[:name] = @args.name end h end |