Class: IngvQuake::ApplicationService

Inherits:
Object
  • Object
show all
Defined in:
lib/ingv_quake/services/application_service.rb

Overview

The ApplicationService class serves as a base class for other service classes within the IngvQuake module. This class provides a convenient way to call services by automatically instantiating and calling the service.

Direct Known Subclasses

BasicInfoEventParser, FullInfoEventParser

Class Method Summary collapse

Class Method Details

.call(*args, &block) ⇒ Object

Calls the service with the given arguments and block.

Parameters:

  • args (Array)

    The arguments to pass to the service’s initializer.

  • block (Proc)

    An optional block to pass to the service’s initializer.

Returns:

  • (Object)

    The result of the service’s call method.



13
14
15
# File 'lib/ingv_quake/services/application_service.rb', line 13

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