Class: ConvenientService::Config::Commands::NormalizeOptions

Inherits:
Support::Command show all
Defined in:
lib/convenient_service/config/commands/normalize_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Support::Command

[], call

Constructor Details

#initialize(options:) ⇒ void

Parameters:



22
23
24
# File 'lib/convenient_service/config/commands/normalize_options.rb', line 22

def initialize(options:)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



16
17
18
# File 'lib/convenient_service/config/commands/normalize_options.rb', line 16

def options
  @options
end

Instance Method Details

#callConvenientService::Config::Entities::OptionCollection



29
30
31
# File 'lib/convenient_service/config/commands/normalize_options.rb', line 29

def call
  Entities::OptionCollection.new(options: normalized_options)
end