Module: GlooIngressAdapter::Util::ResourceExtensions

Defined in:
lib/gloo_ingress_adapter/util/resource_extensions.rb

Overview

Extensions to Resource

Instance Method Summary collapse

Instance Method Details

#to_json(*args) ⇒ Object



10
11
12
# File 'lib/gloo_ingress_adapter/util/resource_extensions.rb', line 10

def to_json(*args)
  to_h.to_json(*args)
end

#to_nice_yamlObject



14
15
16
# File 'lib/gloo_ingress_adapter/util/resource_extensions.rb', line 14

def to_nice_yaml
  to_h.deep_stringify_keys.to_yaml
end