Method: Inspec::Resources::DockerImage#initialize
- Defined in:
- lib/resources/docker_image.rb
#initialize(opts = {}) ⇒ DockerImage
Returns a new instance of DockerImage.
31 32 33 34 35 36 |
# File 'lib/resources/docker_image.rb', line 31 def initialize(opts = {}) # do sanitizion of input values o = opts.dup o = { image: opts } if opts.is_a?(String) @opts = (o) end |