Class: Rhea::Kubernetes::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/rhea/kubernetes/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApi

Returns a new instance of Api.



6
7
8
# File 'lib/rhea/kubernetes/api.rb', line 6

def initialize
  self.client = Kubeclient::Client.new(Rhea.configuration.kube_api[:url] , 'v1', Rhea.configuration.kube_api[:options])
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



10
11
12
# File 'lib/rhea/kubernetes/api.rb', line 10

def method_missing(method, *args)
  self.client.public_send(method, *args)
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



4
5
6
# File 'lib/rhea/kubernetes/api.rb', line 4

def client
  @client
end