Class: HaproxyParser::Builders::Global

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from HaproxyParser::Builders::Base

Instance Method Details

#default_valuesObject



18
19
20
21
22
23
# File 'lib/haproxy_parser/builders/global.rb', line 18

def default_values
  {
    nbproc: 1,
    maxconn: 2000
  }
end

#maxconnObject



10
11
12
# File 'lib/haproxy_parser/builders/global.rb', line 10

def maxconn
  @maxconn ||= dig_data("maxconn")
end

#nbprocObject



6
7
8
# File 'lib/haproxy_parser/builders/global.rb', line 6

def nbproc
  @nbproc ||= dig_data("nbproc")
end

#statsObject



14
15
16
# File 'lib/haproxy_parser/builders/global.rb', line 14

def stats
  @stats ||= dig_data("stats")
end