Class: Rohbau::UseCase

Inherits:
Object
  • Object
show all
Defined in:
lib/rohbau/use_case.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ UseCase

Returns a new instance of UseCase.



14
15
16
# File 'lib/rohbau/use_case.rb', line 14

def initialize(request)
  @request = request
end

Class Method Details

.call(request, input = nil) ⇒ Object



7
8
9
10
11
12
# File 'lib/rohbau/use_case.rb', line 7

def self.call(request, input = nil)
  args = [request]
  args << input if input

  new(*args).call
end