Class: Cottus::Strategy

Inherits:
Object
  • Object
show all
Defined in:
lib/cottus/strategies.rb

Direct Known Subclasses

RoundRobinStrategy

Instance Method Summary collapse

Constructor Details

#initialize(connections, options = {}) ⇒ Strategy

Returns a new instance of Strategy.



14
15
16
# File 'lib/cottus/strategies.rb', line 14

def initialize(connections, options={})
  @connections = connections
end

Instance Method Details

#execute(meth, path, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/cottus/strategies.rb', line 18

def execute(meth, path, options={})
  raise NotImplementedError, 'implement me in subclass'
end