Sha256: e17b961b8f479436f443dd984715f2ad794d3059ff5ea52fdc6a19ccb0b894ca

Contents?: true

Size: 523 Bytes

Versions: 76

Compression:

Stored size: 523 Bytes

Contents

module Dynflow
  module Flows
    class Atom < Abstract

      attr_reader :step_id

      def to_hash
        super.merge(:step_id => step_id)
      end

      def initialize(step_id)
        @step_id = Type! step_id, Integer
      end

      def size
        1
      end

      def all_step_ids
        [step_id]
      end

      def flatten!
        # nothing to do
      end

      protected

      def self.new_from_hash(hash)
        check_class_matching hash
        new(hash[:step_id])
      end

    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
dynflow-1.3.0 lib/dynflow/flows/atom.rb
dynflow-1.2.3 lib/dynflow/flows/atom.rb
dynflow-1.2.2 lib/dynflow/flows/atom.rb
dynflow-1.2.1 lib/dynflow/flows/atom.rb
dynflow-1.2.0 lib/dynflow/flows/atom.rb
dynflow-1.2.0.pre1 lib/dynflow/flows/atom.rb
dynflow-1.1.6 lib/dynflow/flows/atom.rb
dynflow-1.1.5 lib/dynflow/flows/atom.rb
dynflow-1.1.4 lib/dynflow/flows/atom.rb
dynflow-1.1.3 lib/dynflow/flows/atom.rb
dynflow-1.1.2 lib/dynflow/flows/atom.rb
dynflow-1.1.1 lib/dynflow/flows/atom.rb
dynflow-1.1.0 lib/dynflow/flows/atom.rb
dynflow-1.0.5 lib/dynflow/flows/atom.rb
dynflow-1.0.4 lib/dynflow/flows/atom.rb
dynflow-1.0.3 lib/dynflow/flows/atom.rb
dynflow-1.0.2 lib/dynflow/flows/atom.rb
dynflow-1.0.1 lib/dynflow/flows/atom.rb
dynflow-1.0.0 lib/dynflow/flows/atom.rb
dynflow-0.8.37 lib/dynflow/flows/atom.rb