Class: K8s::WatchEvent

Inherits:
Resource
  • Object
show all
Defined in:
lib/k8s/watch_event.rb

Instance Method Summary collapse

Methods inherited from Resource

#<=>, #can_patch?, #checksum, #current_config, default_options, 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

#resourceK8s::Resource

Returns the resource the ‘object` in the WatchEvent refers to.

Returns:

  • (K8s::Resource)

    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