Class: SettingsService::Commands::GetSettings
- Inherits:
-
Object
- Object
- SettingsService::Commands::GetSettings
- Defined in:
- app/services/settings_service/commands/get_settings.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(id:, object:) ⇒ GetSettings
constructor
A new instance of GetSettings.
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
#call ⇒ Object
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 |