Class: WinewooUser::Devices::CreateWinewooUserDevice

Inherits:
BaseUseCase
  • Object
show all
Defined in:
lib/winewoo_core/use_cases/winewoo_user/devices/create_winewoo_user_device.rb

Instance Method Summary collapse

Constructor Details

#initialize(log_params = nil) ⇒ CreateWinewooUserDevice

Returns a new instance of CreateWinewooUserDevice.



4
5
6
# File 'lib/winewoo_core/use_cases/winewoo_user/devices/create_winewoo_user_device.rb', line 4

def initialize(log_params=nil)
  super(WinewooCore.winewoo_user_devices_repo.new, log_params)
end

Instance Method Details

#call(winewoo_user, winewoo_user_params) ⇒ Object



9
10
11
# File 'lib/winewoo_core/use_cases/winewoo_user/devices/create_winewoo_user_device.rb', line 9

def call(winewoo_user, winewoo_user_params)
  self.repo.create(winewoo_user, winewoo_user_params)
end