Class: Serega::SeregaPlugins::Root::RootConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/serega/plugins/root/root.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ RootConfig

Returns a new instance of RootConfig.



52
53
54
# File 'lib/serega/plugins/root/root.rb', line 52

def initialize(opts)
  @opts = opts
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



50
51
52
# File 'lib/serega/plugins/root/root.rb', line 50

def opts
  @opts
end

Instance Method Details

#manyObject



60
61
62
# File 'lib/serega/plugins/root/root.rb', line 60

def many
  opts.fetch(:many)
end

#many=(value) ⇒ Object



68
69
70
# File 'lib/serega/plugins/root/root.rb', line 68

def many=(value)
  opts[:many] = value
end

#oneObject



56
57
58
# File 'lib/serega/plugins/root/root.rb', line 56

def one
  opts.fetch(:one)
end

#one=(value) ⇒ Object



64
65
66
# File 'lib/serega/plugins/root/root.rb', line 64

def one=(value)
  opts[:one] = value
end