Class: Rains::Service
- Inherits:
-
Object
- Object
- Rains::Service
- Extended by:
- DSL::Dependencies
- Defined in:
- lib/rains/service.rb
Defined Under Namespace
Instance Method Summary collapse
Methods included from DSL::Dependencies
Instance Method Details
#action ⇒ Object
46 47 48 |
# File 'lib/rains/service.rb', line 46 def action raise NotImplementedError end |
#call ⇒ Object
54 55 56 57 58 |
# File 'lib/rains/service.rb', line 54 def call Result::Success.new(action) rescue StandardError => error Result::Fail.new(error) end |
#call! ⇒ Object
50 51 52 |
# File 'lib/rains/service.rb', line 50 def call! action end |