Class: K8s::WatchEvent
- Defined in:
- lib/k8s/watch_event.rb
Instance Method Summary collapse
-
#resource ⇒ K8s::Resource
The resource the ‘object` in the WatchEvent refers to.
Methods inherited from Resource
#<=>, #can_patch?, #checksum, #current_config, from_file, from_files, from_json, #initialize, #merge, #merge_patch_ops, #to_json
Constructor Details
This class inherits a constructor from K8s::Resource
Instance Method Details
#resource ⇒ K8s::Resource
Returns the resource the ‘object` in the WatchEvent refers to.
8 9 10 |
# File 'lib/k8s/watch_event.rb', line 8 def resource @resource ||= Resource.new(object) end |