Class: Kubecontrol::Resources::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/kubecontrol/resources/service.rb

Constant Summary collapse

RESOURCE_NAME =
'services'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ageObject (readonly)

Returns the value of attribute age.



6
7
8
# File 'lib/kubecontrol/resources/service.rb', line 6

def age
  @age
end

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/kubecontrol/resources/service.rb', line 6

def client
  @client
end

#cluster_ipObject (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_ipObject (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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/kubecontrol/resources/service.rb', line 6

def name
  @name
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



6
7
8
# File 'lib/kubecontrol/resources/service.rb', line 6

def namespace
  @namespace
end

#portsObject (readonly)

Returns the value of attribute ports.



6
7
8
# File 'lib/kubecontrol/resources/service.rb', line 6

def ports
  @ports
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/kubecontrol/resources/service.rb', line 6

def type
  @type
end