Class: Reschedule::Kubernetes::Api
- Inherits:
-
Object
- Object
- Reschedule::Kubernetes::Api
- Defined in:
- lib/reschedule/kubernetes/api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize ⇒ Api
constructor
A new instance of Api.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize ⇒ Api
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', ) 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
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/reschedule/kubernetes/api.rb', line 4 def client @client end |