Module: Interactor::Initializer::ClassMethods

Defined in:
lib/interactor/initializer.rb

Class Method Summary collapse

Class Method Details

.initialize_with(*attributes) ⇒ Object



16
17
18
19
# File 'lib/interactor/initializer.rb', line 16

def initialize_with(*attributes)
  Interactor::Initializer::Initialize.for(self, attributes)
  Interactor::Initializer::AttrReaders.for(self, attributes)
end

.initialize_with_keyword_params(*attributes) ⇒ Object



21
22
23
24
# File 'lib/interactor/initializer.rb', line 21

def initialize_with_keyword_params(*attributes)
  Interactor::Initializer::Initialize.for(self, attributes, keyword_params: true)
  Interactor::Initializer::AttrReaders.for(self, attributes)
end