Class: Kubecontrol::Resources::Service
- Inherits:
-
Object
- Object
- Kubecontrol::Resources::Service
- Defined in:
- lib/kubecontrol/resources/service.rb
Constant Summary collapse
- RESOURCE_NAME =
'services'.freeze
Instance Attribute Summary collapse
-
#age ⇒ Object
readonly
Returns the value of attribute age.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#cluster_ip ⇒ Object
readonly
Returns the value of attribute cluster_ip.
-
#external_ip ⇒ Object
readonly
Returns the value of attribute external_ip.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#ports ⇒ Object
readonly
Returns the value of attribute ports.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, cluster_ip, external_ip, ports, age, namespace, client) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(name, type, cluster_ip, external_ip, ports, age, namespace, client) ⇒ Service
Returns a new instance of Service.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/kubecontrol/resources/service.rb', line 8 def initialize(name, type, cluster_ip, external_ip, ports, age, namespace, client) @name = name @age = age @type = type @cluster_ip = cluster_ip @external_ip = external_ip @ports = ports @namespace = namespace @client = client end |
Instance Attribute Details
#age ⇒ Object (readonly)
Returns the value of attribute age.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def age @age end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def client @client end |
#cluster_ip ⇒ Object (readonly)
Returns the value of attribute cluster_ip.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def cluster_ip @cluster_ip end |
#external_ip ⇒ Object (readonly)
Returns the value of attribute external_ip.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def external_ip @external_ip end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def namespace @namespace end |
#ports ⇒ Object (readonly)
Returns the value of attribute ports.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def ports @ports end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/kubecontrol/resources/service.rb', line 6 def type @type end |