Sha256: 6580f01cac181d23cac56075709c8d54c58550fde8c499fb4aa8567c34328d86
Contents?: true
Size: 352 Bytes
Versions: 27
Compression:
Stored size: 352 Bytes
Contents
#!/usr/bin/env ruby require 'digest/md5' module Visage class Graph attr_accessor :host, :plugin, :instances def initialize(opts={}) @host = opts[:host] @plugin = opts[:plugin] @instances = opts[:instances] end def id Digest::MD5.hexdigest("#{@host}-#{@plugin}-#{@instances}\n") end end end
Version data entries
27 entries across 27 versions & 1 rubygems