Sha256: e546a97359e9d622100eea765c8de85ac9998b6a60388e29f7f51a54bcef3b45

Contents?: true

Size: 424 Bytes

Versions: 50

Compression:

Stored size: 424 Bytes

Contents

module Eco
  module API
    class UseCases
      class DefaultCase

        def initialize(cases, **options)
          raise "Expected a Eco::API::UseCases object. Given #{cases.class}" if !cases.is_a?(Eco::API::UseCases)
          @cases   = cases
          @options = options
        end

        def process
          raise "You should reimplement this method"
        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
eco-helpers-1.0.8 lib/eco/api/usecases/default_case.rb
eco-helpers-1.0.7 lib/eco/api/usecases/default_case.rb
eco-helpers-1.0.6 lib/eco/api/usecases/default_case.rb
eco-helpers-1.0.5 lib/eco/api/usecases/default_case.rb
eco-helpers-1.0.4 lib/eco/api/usecases/default_case.rb
eco-helpers-1.0.3 lib/eco/api/usecases/default_case.rb
eco-helpers-0.9.5 lib/eco/api/usecases/default_case.rb
eco-helpers-1.0.2 lib/eco/api/usecases/default_case.rb
eco-helpers-0.9.4 lib/eco/api/usecases/default_case.rb
eco-helpers-0.9.3 lib/eco/api/usecases/default_case.rb