Class: WinewooUser::Devices::CreateWinewooUserDevice
- Inherits:
-
BaseUseCase
- Object
- BaseUseCase
- WinewooUser::Devices::CreateWinewooUserDevice
- Defined in:
- lib/winewoo_core/use_cases/winewoo_user/devices/create_winewoo_user_device.rb
Instance Method Summary collapse
- #call(winewoo_user, winewoo_user_params) ⇒ Object
-
#initialize(log_params = nil) ⇒ CreateWinewooUserDevice
constructor
A new instance of CreateWinewooUserDevice.
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 |