2021-08-19 08:50:24 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-23 01:02:06 -07:00
|
|
|
require "dry-initializer"
|
|
|
|
require "types"
|
|
|
|
require "errors"
|
2021-08-19 08:50:24 -07:00
|
|
|
|
|
|
|
module UseCase
|
|
|
|
class Base
|
|
|
|
extend Dry::Initializer
|
|
|
|
|
2022-07-23 02:59:01 -07:00
|
|
|
def self.call(...) = new(...).call
|
2021-08-19 08:50:24 -07:00
|
|
|
|
2022-07-23 02:59:01 -07:00
|
|
|
def call = raise NotImplementedError
|
2021-08-19 08:50:24 -07:00
|
|
|
end
|
2022-07-23 01:02:06 -07:00
|
|
|
end
|