Class: HaproxyParser::Builders::Global
- Inherits:
-
Base
- Object
- Base
- HaproxyParser::Builders::Global
show all
- Defined in:
- lib/haproxy_parser/builders/global.rb
Instance Attribute Summary
Attributes inherited from Base
#default, #section
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #initialize, #name
Instance Method Details
#default_values ⇒ Object
18
19
20
21
22
23
|
# File 'lib/haproxy_parser/builders/global.rb', line 18
def default_values
{
nbproc: 1,
maxconn: 2000
}
end
|
#maxconn ⇒ Object
10
11
12
|
# File 'lib/haproxy_parser/builders/global.rb', line 10
def maxconn
@maxconn ||= dig_data("maxconn")
end
|
#nbproc ⇒ Object
6
7
8
|
# File 'lib/haproxy_parser/builders/global.rb', line 6
def nbproc
@nbproc ||= dig_data("nbproc")
end
|
#stats ⇒ Object
14
15
16
|
# File 'lib/haproxy_parser/builders/global.rb', line 14
def stats
@stats ||= dig_data("stats")
end
|