Sha256: 0cf6a640cacf4227addeae01a6370c2ed2a662e4091a29d2b906864ba5687014

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require 'minarai/actions/base'
require 'minarai/errors/invalid_action_type_error'

module Minarai
  module Actions
    class Unknown < Base
      def run
        # override
      end

      def error_messages
        [Minarai::Errors::InvalidActionTypeError.new(name)]
      end

      private

      def complete?
        # override
      end

      def name
        super || 'unknow action'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minarai-0.0.2 lib/minarai/actions/unknown.rb
minarai-0.0.1 lib/minarai/actions/unknown.rb