Class: KubeDSL::ExternalRef

Inherits:
Ref
  • Object
show all
Defined in:
lib/kube-dsl/external_ref.rb

Constant Summary

Constants included from StringHelpers

StringHelpers::RUBY_KEYWORDS

Instance Attribute Summary

Attributes inherited from Ref

#autoload_prefix, #inflector, #kind, #namespace, #ruby_namespace_prefix, #schema_dir, #serialize_handlers, #str, #version

Instance Method Summary collapse

Methods inherited from Ref

#initialize, #inline?, #ruby_autoload_path, #ruby_namespace

Methods included from StringHelpers

#capitalize, #underscore, #unkeywordify

Constructor Details

This class inherits a constructor from KubeDSL::Ref

Instance Method Details

#documentObject



8
9
10
# File 'lib/kube-dsl/external_ref.rb', line 8

def document
  {}
end

#metaObject



4
5
6
# File 'lib/kube-dsl/external_ref.rb', line 4

def meta
  @meta ||= ExternalResourceMeta.new(self)
end

#object?Boolean

assume external refs are always object fields

Returns:

  • (Boolean)


13
14
15
# File 'lib/kube-dsl/external_ref.rb', line 13

def object?
  true
end