Class: Dynflow::Flows::Atom
- Inherits:
-
Abstract
- Object
- Serializable
- Abstract
- Dynflow::Flows::Atom
- Defined in:
- lib/dynflow/flows/atom.rb
Instance Attribute Summary collapse
-
#step_id ⇒ Object
readonly
Returns the value of attribute step_id.
Instance Method Summary collapse
- #all_step_ids ⇒ Object
- #flatten! ⇒ Object
-
#initialize(step_id) ⇒ Atom
constructor
A new instance of Atom.
- #size ⇒ Object
- #to_hash ⇒ Object
Methods inherited from Abstract
Methods inherited from Serializable
Constructor Details
#initialize(step_id) ⇒ Atom
Returns a new instance of Atom.
11 12 13 |
# File 'lib/dynflow/flows/atom.rb', line 11 def initialize(step_id) @step_id = Type! step_id, Integer end |
Instance Attribute Details
#step_id ⇒ Object (readonly)
Returns the value of attribute step_id.
5 6 7 |
# File 'lib/dynflow/flows/atom.rb', line 5 def step_id @step_id end |
Instance Method Details
#all_step_ids ⇒ Object
19 20 21 |
# File 'lib/dynflow/flows/atom.rb', line 19 def all_step_ids [step_id] end |
#flatten! ⇒ Object
23 24 25 |
# File 'lib/dynflow/flows/atom.rb', line 23 def flatten! # nothing to do end |
#size ⇒ Object
15 16 17 |
# File 'lib/dynflow/flows/atom.rb', line 15 def size 1 end |
#to_hash ⇒ Object
7 8 9 |
# File 'lib/dynflow/flows/atom.rb', line 7 def to_hash super.merge(:step_id => step_id) end |