Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
inspec / lib / inspec / objects / tag.rb
Size: Mime:
# encoding:utf-8

module Inspec
  class Tag
    attr_accessor :key, :value

    def initialize(key, value)
      @key = key
      @value = value
    end

    def to_hash
      {
        name: key,
        value: value,
      }
    end

    def to_ruby
      "tag #{key.inspect}: #{value.inspect}"
    end

    def to_s
      "Tag #{key} with #{value}"
    end
  end
end