Class: Kubeclient::Common::EntityList

Inherits:
Array
  • Object
show all
Defined in:
lib/kubeclient/entity_list.rb

Overview

Kubernetes Entity List

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind, resource_version, list, continue = nil) ⇒ EntityList

Returns a new instance of EntityList.



8
9
10
11
12
13
14
# File 'lib/kubeclient/entity_list.rb', line 8

def initialize(kind, resource_version, list, continue = nil)
  @kind = kind
  # rubocop:disable Style/VariableName
  @resourceVersion = resource_version
  @continue = continue
  super(list)
end

Instance Attribute Details

#continueObject (readonly)

Returns the value of attribute continue.



6
7
8
# File 'lib/kubeclient/entity_list.rb', line 6

def continue
  @continue
end

#kindObject (readonly)

Returns the value of attribute kind.



6
7
8
# File 'lib/kubeclient/entity_list.rb', line 6

def kind
  @kind
end

#resourceVersionObject (readonly)

Returns the value of attribute resourceVersion.



6
7
8
# File 'lib/kubeclient/entity_list.rb', line 6

def resourceVersion
  @resourceVersion
end

Instance Method Details

#last?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/kubeclient/entity_list.rb', line 16

def last?
  continue.nil?
end