Class: Kube::Cluster::Resource
- Inherits:
-
Schema::Resource
- Object
- Schema::Resource
- Kube::Cluster::Resource
- Includes:
- DirtyTracking, Persistence
- Defined in:
- lib/kube/cluster/resource.rb,
lib/kube/cluster/resource/persistence.rb,
lib/kube/cluster/resource/dirty_tracking.rb
Defined Under Namespace
Modules: DirtyTracking, Persistence
Instance Attribute Summary collapse
-
#cluster ⇒ Object
Returns the value of attribute cluster.
Instance Method Summary collapse
-
#initialize(hash = {}, &block) ⇒ Resource
constructor
A new instance of Resource.
Methods included from Persistence
#apply, #delete, #patch, #reload
Methods included from DirtyTracking
#changed, #changed?, #changes, #changes_applied, #method_missing, #patch_data, #respond_to_missing?
Constructor Details
#initialize(hash = {}, &block) ⇒ Resource
Returns a new instance of Resource.
14 15 16 17 18 |
# File 'lib/kube/cluster/resource.rb', line 14 def initialize(hash = {}, &block) @cluster = hash.delete(:cluster) super snapshot! end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Kube::Cluster::Resource::DirtyTracking
Instance Attribute Details
#cluster ⇒ Object
Returns the value of attribute cluster.
12 13 14 |
# File 'lib/kube/cluster/resource.rb', line 12 def cluster @cluster end |