Class: Zas::ServiceConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Zas::ServiceConfiguration
- Defined in:
- lib/zas/service_configuration.rb
Overview
Struct used to hold configuration information for the service
host - The host to listen to requests on. May be “*” or an IP address. port - The port number to listen to requests on. name - The name of the service for logging.
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ServiceConfiguration
constructor
A new instance of ServiceConfiguration.
Constructor Details
#initialize(attributes = {}) ⇒ ServiceConfiguration
Returns a new instance of ServiceConfiguration.
8 9 10 11 12 |
# File 'lib/zas/service_configuration.rb', line 8 def initialize(attributes={}) attributes.each do |k, v| self[k] = v end end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
7 8 9 |
# File 'lib/zas/service_configuration.rb', line 7 def host @host end |
#logger ⇒ Object
Returns the value of attribute logger
7 8 9 |
# File 'lib/zas/service_configuration.rb', line 7 def logger @logger end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/zas/service_configuration.rb', line 7 def name @name end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/zas/service_configuration.rb', line 7 def port @port end |