Class: Fairy::There

Inherits:
Filter show all
Defined in:
lib/fairy/client/there.rb

Defined Under Namespace

Modules: Interface

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Filter

#backend, #backend=, #backend_class, #def_pool_variable

Constructor Details

#initialize(fairy, opts, enumerable) ⇒ There

Returns a new instance of There.



34
35
36
37
# File 'lib/fairy/client/there.rb', line 34

def initialize(fairy, opts, enumerable)
  super
  @enumerable = enumerable
end

Class Method Details

.input(fairy, opts, enumerable) ⇒ Object



24
25
26
# File 'lib/fairy/client/there.rb', line 24

def self.input(fairy, opts, enumerable)
  self.start(fairy, opts, enumerable)
end

.start(fairy, opts, enumerable) ⇒ Object



28
29
30
31
32
# File 'lib/fairy/client/there.rb', line 28

def self.start(fairy, opts, enumerable)
  there = new(fairy, opts, enumerable)
  there.start
  there
end

Instance Method Details

#backend_class_nameObject



39
40
41
# File 'lib/fairy/client/there.rb', line 39

def backend_class_name
  "CThere"
end

#startObject



43
44
45
# File 'lib/fairy/client/there.rb', line 43

def start
  backend.start
end