Class: SettingsService::Commands::GetSettings

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

Instance Method Summary collapse

Constructor Details

#initialize(id:, object:) ⇒ GetSettings

Returns a new instance of GetSettings.



4
5
6
7
# File 'app/services/settings_service/commands/get_settings.rb', line 4

def initialize(id:, object:)
  @id = id
  @object = object
end

Instance Method Details

#callObject



9
10
11
12
# File 'app/services/settings_service/commands/get_settings.rb', line 9

def call
  object.create_table
  object.get(id: @id)
end