File: resource.rb

package info (click to toggle)
ruby-kubeclient 4.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,112 kB
  • sloc: ruby: 4,225; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'recursive_open_struct'

module Kubeclient
  # Represents all the objects returned by Kubeclient
  class Resource < RecursiveOpenStruct
    def initialize(hash = nil, args = {})
      args[:recurse_over_arrays] = true
      super(hash, args)
    end
  end
end