Class: Zas::ClientConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Zas::ClientConfiguration
- Defined in:
- lib/zas/client_configuration.rb
Overview
Struct used to configure the Zas::Client.
host - The IP address of the service. Defaults to 127.0.0.1 port - The port number for the service. name - The name of the client for logging.
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ClientConfiguration
constructor
A new instance of ClientConfiguration.
Constructor Details
#initialize(attributes = {}) ⇒ ClientConfiguration
Returns a new instance of ClientConfiguration.
8 9 10 11 12 |
# File 'lib/zas/client_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/client_configuration.rb', line 7 def host @host end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/zas/client_configuration.rb', line 7 def name @name end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/zas/client_configuration.rb', line 7 def port @port end |