Class: Services::Endpoint
Overview
endpoint describes a VIP ip
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#port ⇒ Object
Returns the value of attribute port.
-
#proto ⇒ Object
Returns the value of attribute proto.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(name, args = {}) ⇒ Endpoint
constructor
A new instance of Endpoint.
Methods inherited from Entity
Constructor Details
#initialize(name, args = {}) ⇒ Endpoint
Returns a new instance of Endpoint.
10 11 12 13 14 15 16 |
# File 'lib/services/endpoint.rb', line 10 def initialize(name, args = {}) @ip = args[:ip] || '' @proto = args[:proto] || 'http' @port = args[:port] || 80 @path = "#{name}/endpoint" super end |
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
9 10 11 |
# File 'lib/services/endpoint.rb', line 9 def ip @ip end |
#port ⇒ Object
Returns the value of attribute port.
9 10 11 |
# File 'lib/services/endpoint.rb', line 9 def port @port end |
#proto ⇒ Object
Returns the value of attribute proto.
9 10 11 |
# File 'lib/services/endpoint.rb', line 9 def proto @proto end |