Class: Rwc::Core::BaseService
- Inherits:
-
Object
- Object
- Rwc::Core::BaseService
- Includes:
- Concerns::ErrorHandling::Validatable
- Defined in:
- lib/rwc/core/base_service.rb
Class Method Summary collapse
-
.call(**kwargs) ⇒ Object
Calls the service with the provided keyword arguments.
Instance Method Summary collapse
-
#call ⇒ Object
Executes the service logic.
Methods included from Concerns::ErrorHandling::Validatable
included, #raise_error!, #should_run_checks?
Class Method Details
.call(**kwargs) ⇒ Object
Calls the service with the provided keyword arguments.
16 17 18 |
# File 'lib/rwc/core/base_service.rb', line 16 def self.call(**kwargs) new(**kwargs).call end |
Instance Method Details
#call ⇒ Object
Executes the service logic. Must be implemented in subclasses.
23 24 25 |
# File 'lib/rwc/core/base_service.rb', line 23 def call raise NotImplementedError end |