Class: Stellr::Strategies::Base

Inherits:
Object
  • Object
show all
Includes:
Utils::Shutdown
Defined in:
lib/stellr/strategies/base.rb

Direct Known Subclasses

Blocking, Queueing

Instance Method Summary collapse

Methods included from Utils::Shutdown

#shutdown, #shutting_down?

Constructor Details

#initialize(collection, options) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/stellr/strategies/base.rb', line 6

def initialize( collection, options )
  @collection = collection
  @options = options.dup
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



11
12
13
# File 'lib/stellr/strategies/base.rb', line 11

def method_missing(name, *args)
  @collection.send name, *args
end