Class: Tornados::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/tornados/service.rb

Direct Known Subclasses

Formater, GeoEnrich, MaxDbFetcher, NodesFetcher, Writer

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Service

Returns a new instance of Service.



11
12
13
# File 'lib/tornados/service.rb', line 11

def initialize(data)
  @data = data
end

Class Method Details

.call(*args, &block) ⇒ Object



15
16
17
# File 'lib/tornados/service.rb', line 15

def self.call(*args, &block)
  new(*args, &block).send(:execute)
end

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/tornados/service.rb', line 19

def execute
  raise NotImplementedError
end