Sha256: 45083065e0a8029c46b437f68972a51263a4248d98989275b8da5f34fa7032b4

Contents?: true

Size: 527 Bytes

Versions: 15

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true
module Dynflow
  module Flows
    class Atom < Abstract

      attr_reader :step_id

      def encode
        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

15 entries across 15 versions & 1 rubygems

Version Path
dynflow-1.8.2 lib/dynflow/flows/atom.rb
dynflow-1.8.1 lib/dynflow/flows/atom.rb
dynflow-1.8.0 lib/dynflow/flows/atom.rb
dynflow-1.7.0 lib/dynflow/flows/atom.rb
dynflow-1.6.11 lib/dynflow/flows/atom.rb
dynflow-1.6.10 lib/dynflow/flows/atom.rb
dynflow-1.6.8 lib/dynflow/flows/atom.rb
dynflow-1.6.7 lib/dynflow/flows/atom.rb
dynflow-1.6.6 lib/dynflow/flows/atom.rb
dynflow-1.6.5 lib/dynflow/flows/atom.rb
dynflow-1.6.4 lib/dynflow/flows/atom.rb
dynflow-1.6.3 lib/dynflow/flows/atom.rb
dynflow-1.6.2 lib/dynflow/flows/atom.rb
dynflow-1.6.1 lib/dynflow/flows/atom.rb
dynflow-1.5.0 lib/dynflow/flows/atom.rb