Class: Tornados::Service
- Inherits:
-
Object
show all
- Defined in:
- lib/tornados/service.rb
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
#execute ⇒ Object
19
20
21
|
# File 'lib/tornados/service.rb', line 19
def execute
raise NotImplementedError
end
|