Class: SettingsService::Commands::UpdateSettings
- Inherits:
-
Object
- Object
- SettingsService::Commands::UpdateSettings
- Defined in:
- app/services/settings_service/commands/update_settings.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(id:, setting:, value:, object:) ⇒ UpdateSettings
constructor
A new instance of UpdateSettings.
Constructor Details
#initialize(id:, setting:, value:, object:) ⇒ UpdateSettings
Returns a new instance of UpdateSettings.
4 5 6 7 8 9 |
# File 'app/services/settings_service/commands/update_settings.rb', line 4 def initialize id:, setting:, value:, object: @id = id @setting = setting @value = value @object = object end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'app/services/settings_service/commands/update_settings.rb', line 11 def call object.create_table object.put(id: @id, setting: @setting, value: @value) end |