class Twb::Graphnode
Attributes
id[R]
@name - the visible name @id - the technical identifier, used to distinquish the node from similarly named nodes @type - useful for categorizing the node
name[R]
@name - the visible name @id - the technical identifier, used to distinquish the node from similarly named nodes @type - useful for categorizing the node
properties[RW]
type[R]
@name - the visible name @id - the technical identifier, used to distinquish the node from similarly named nodes @type - useful for categorizing the node
Public Class Methods
new(name:, id:, type:, properties: {})
click to toggle source
# File lib/twb/graphnode.rb, line 27 def initialize (name:, id:, type:, properties: {}) @name = name @id = id @type = type @properties = properties end
Public Instance Methods
dotLabel()
click to toggle source
# File lib/twb/graphnode.rb, line 34 def dotLabel # "JIRA 1::JIRA 1.csv" [label="JIRA 1.csv"] "\"%s\" [label=\"%s\"]" % [id, name] end
eql?(other)
click to toggle source
# File lib/twb/graphnode.rb, line 39 def eql? other @name == other.name && @id == other.id && @type == other.type && @properties == other.properties end
hash()
click to toggle source
# File lib/twb/graphnode.rb, line 43 def hash [@name, @id, @type, @properties].hash end
to_s()
click to toggle source
# File lib/twb/graphnode.rb, line 47 def to_s "name:'%s' id:'%s' t:'%s' p:'%s'" % [@name, @id, @type, @properties.to_s] end