Sha256: a62c24b65eadb35053d0249ec98436f640300df0a028dcd0c274a6480c404e57

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

class ApplicationService
  def self.call(*args, &block)
    instance = new(*args, &block)
    instance.call
  end

  def call
    raise NotImplementedError('Services must implement call')
  end

  private_class_method :new
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
schienenzeppelin-0.2 templates/app/services/application_service.rb
schienenzeppelin-0.1 templates/app/services/application_service.rb