Class: SettingsService::Commands::UpdateSettings

Inherits:
Object
  • Object
show all
Defined in:
app/services/settings_service/commands/update_settings.rb

Instance Method Summary collapse

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

#callObject



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