Class: Reschedule::Kubernetes::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/reschedule/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/reschedule/kubernetes/api.rb', line 6

def initialize
  self.client = Kubeclient::Client.new(Reschedule.configuration.kubernetes_api_url, 'v1', client_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/reschedule/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/reschedule/kubernetes/api.rb', line 4

def client
  @client
end