Class: SettingsService::Commands::GetUserSettings

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

Overview

DEPRICATED: Use “GetSettings instead”

Instance Method Summary collapse

Constructor Details

#initialize(id:) ⇒ GetUserSettings

Returns a new instance of GetUserSettings.



6
7
8
# File 'app/services/settings_service/commands/get_user_settings.rb', line 6

def initialize id:
  @id = id
end

Instance Method Details

#callObject



10
11
12
13
14
15
# File 'app/services/settings_service/commands/get_user_settings.rb', line 10

def call
  SettingsService::User.create_table
  SettingsService::User.get(
    id: @id
  )
end