class Inspec::Object::Tag
Attributes
key[RW]
value[RW]
Public Class Methods
new(key, value)
click to toggle source
# File lib/inspec/objects/tag.rb, line 7 def initialize(key, value) @key = key @value = value end
Public Instance Methods
to_hash()
click to toggle source
# File lib/inspec/objects/tag.rb, line 12 def to_hash { name: key, value: value, } end
to_ruby()
click to toggle source
# File lib/inspec/objects/tag.rb, line 19 def to_ruby "tag #{key}: #{value.inspect}" end
to_s()
click to toggle source
# File lib/inspec/objects/tag.rb, line 23 def to_s "Tag #{key} with #{value}" end