Class: Stastic::Command::Set
Constant Summary collapse
- VALID_SETTINGS =
[:site_root, :site_id]
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(args = []) ⇒ Set
constructor
A new instance of Set.
Constructor Details
#initialize(args = []) ⇒ Set
Returns a new instance of Set.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stastic/commands/set.rb', line 7 def initialize(args = []) case args.size when 0 raise(Stastic::Command::InvalidOptions) else self.settings = parse_args(args) validate_settings(settings) end end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
3 4 5 |
# File 'lib/stastic/commands/set.rb', line 3 def settings @settings end |
Instance Method Details
#index ⇒ Object
17 18 19 |
# File 'lib/stastic/commands/set.rb', line 17 def index update_settings(settings) end |