module Interactor::Initializer::ClassMethods

Public Instance Methods

for(*args) click to toggle source
# File lib/interactor/initializer.rb, line 12
def for(*args)
  new(*args).run
end
initialize_with(*attributes) click to toggle source
# File lib/interactor/initializer.rb, line 26
def initialize_with(*attributes)
  Interactor::Initializer::Initialize.for(self, attributes)
  Interactor::Initializer::AttrReaders.for(self, attributes)
end
initialize_with_keyword_params(*attributes) click to toggle source
# File lib/interactor/initializer.rb, line 31
def initialize_with_keyword_params(*attributes)
  Interactor::Initializer::Initialize.for(self, attributes, keyword_params: true)
  Interactor::Initializer::AttrReaders.for(self, attributes)
end
run(*args) click to toggle source
# File lib/interactor/initializer.rb, line 20
def run(*args)
  new(*args).run
end
with(*args) click to toggle source
# File lib/interactor/initializer.rb, line 16
def with(*args)
  new(*args).run
end