Class: PodmanContainerFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec-podman-resources/resources/podman.rb

Overview

class for podman.containers plural resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(containers) ⇒ PodmanContainerFilter

Returns a new instance of PodmanContainerFilter.



223
224
225
# File 'lib/inspec-podman-resources/resources/podman.rb', line 223

def initialize(containers)
  @containers = containers
end

Instance Attribute Details

#containersObject (readonly)

Returns the value of attribute containers.



222
223
224
# File 'lib/inspec-podman-resources/resources/podman.rb', line 222

def containers
  @containers
end

Instance Method Details

#resource_idObject



231
232
233
# File 'lib/inspec-podman-resources/resources/podman.rb', line 231

def resource_id
  "Podman Containers"
end

#to_sObject



227
228
229
# File 'lib/inspec-podman-resources/resources/podman.rb', line 227

def to_s
  "Podman Containers"
end