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

Version Path
visage-app-2.1.0 lib/visage-app/graph.rb
visage-app-2.0.5 lib/visage-app/graph.rb
visage-app-2.0.4 lib/visage-app/graph.rb
visage-app-2.0.2 lib/visage-app/graph.rb
visage-app-2.0.0 lib/visage-app/graph.rb
visage-app-1.0.0 lib/visage-app/graph.rb
visage-app-0.9.6 lib/visage-app/graph.rb
visage-app-0.9.5 lib/visage-app/graph.rb
visage-app-0.9.4 lib/visage-app/graph.rb
visage-app-0.9.3 lib/visage-app/graph.rb
visage-app-0.9.2 lib/visage-app/graph.rb
visage-app-0.9.1 lib/visage-app/graph.rb
visage-app-0.9.0.pre2 lib/visage-app/graph.rb
visage-app-0.9.0 lib/visage-app/graph.rb
visage-app-0.9.0.pre1 lib/visage-app/graph.rb
visage-app-0.3.3 lib/visage-app/graph.rb
visage-app-0.3.2 lib/visage/graph.rb
visage-app-0.3.1 lib/visage/graph.rb
visage-app-0.3.0 lib/visage/graph.rb
visage-app-0.2.7 lib/visage/graph.rb