Class: HAProxy::Listener

Inherits:
Struct
  • Object
show all
Includes:
ServerList
Defined in:
lib/haproxy/config.rb,
lib/haproxy/config.rb

Overview

Represents a listener configuration block.

Instance Attribute Summary collapse

Method Summary

Methods included from ServerList

#add_server

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



4
5
6
# File 'lib/haproxy/config.rb', line 4

def config
  @config
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



4
5
6
# File 'lib/haproxy/config.rb', line 4

def host
  @host
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/haproxy/config.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/haproxy/config.rb', line 4

def options
  @options
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



4
5
6
# File 'lib/haproxy/config.rb', line 4

def port
  @port
end

#serversObject

Returns the value of attribute servers

Returns:

  • (Object)

    the current value of servers



4
5
6
# File 'lib/haproxy/config.rb', line 4

def servers
  @servers
end