Class: RakeGraph::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/azkaban-rb/visualization.rb

Direct Known Subclasses

DataNode, TaskNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Node

Returns a new instance of Node.



81
82
83
84
# File 'lib/azkaban-rb/visualization.rb', line 81

def initialize(name, type)
  @name = name
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



79
80
81
# File 'lib/azkaban-rb/visualization.rb', line 79

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



79
80
81
# File 'lib/azkaban-rb/visualization.rb', line 79

def type
  @type
end

Instance Method Details

#fontcolorObject



86
87
88
# File 'lib/azkaban-rb/visualization.rb', line 86

def fontcolor
  return '#000000'
end

#to_sObject



90
91
92
# File 'lib/azkaban-rb/visualization.rb', line 90

def to_s
  return "#{@type}: #{@name}"
end