dodgerogers/nucleus-core

View on GitHub
lib/nucleus_core/workflow/process.rb

Summary

Maintainability
A
0 mins
Test Coverage
module NucleusCore
  module Workflow
    class Process
      attr_reader :state
      attr_accessor :reference, :visited

      def initialize(state, opts={})
        @state = state
        @visited = []
        @reference = opts[:reference]
      end

      def state=(state)
        @state = state
        @visited.push(state)
      end
    end
  end
end