class Dynflow::Flows::Atom

Attributes

step_id[R]

Public Class Methods

new(step_id) click to toggle source
# File lib/dynflow/flows/atom.rb, line 12
def initialize(step_id)
  @step_id = Type! step_id, Integer
end

Protected Class Methods

new_from_hash(hash) click to toggle source
# File lib/dynflow/flows/atom.rb, line 30
def self.new_from_hash(hash)
  check_class_matching hash
  new(hash[:step_id])
end

Public Instance Methods

all_step_ids() click to toggle source
# File lib/dynflow/flows/atom.rb, line 20
def all_step_ids
  [step_id]
end
flatten!() click to toggle source
# File lib/dynflow/flows/atom.rb, line 24
def flatten!
  # nothing to do
end
size() click to toggle source
# File lib/dynflow/flows/atom.rb, line 16
def size
  1
end
to_hash() click to toggle source
Calls superclass method Dynflow::Flows::Abstract#to_hash
# File lib/dynflow/flows/atom.rb, line 8
def to_hash
  super.merge(:step_id => step_id)
end