Sha256: d385dfb9c2f67c6eadfa5b8f0ad7d0eada39aa6d9113d3f6d83459c872387e23

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

module Eco
  module API
    module UseCases
      class BaseCase
        
        def initialize(cases, **options)
          raise "Expected UseGroup. Given: #{cases.class}" unless cases.is_a?(UseGroup)
          @cases   = cases
          @options = options
        end

        def process
          raise "You should reimplement this method"
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eco-helpers-0.9.2 lib/eco/api/usecases/base_case.rb
eco-helpers-0.9.1 lib/eco/api/usecases/base_case.rb
eco-helpers-0.8.4 lib/eco/api/usecases/base_case.rb
eco-helpers-0.8.3 lib/eco/api/usecases/base_case.rb
eco-helpers-0.8.2 lib/eco/api/usecases/base_case.rb
eco-helpers-0.8.1 lib/eco/api/usecases/base_case.rb
eco-helpers-0.7.2 lib/eco/api/usecases/base_case.rb
eco-helpers-0.7.1 lib/eco/api/usecases/base_case.rb