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 01:02:06 -07:00
|
|
|
def self.call(...)
|
|
|
|
new(...).call
|
2021-08-19 08:50:24 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
def call
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
2022-07-23 01:02:06 -07:00
|
|
|
end
|