Class: RakeGraph::Node
- Inherits:
-
Object
- Object
- RakeGraph::Node
- Defined in:
- lib/azkaban-rb/visualization.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #fontcolor ⇒ Object
-
#initialize(name, type) ⇒ Node
constructor
A new instance of Node.
- #to_s ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
79 80 81 |
# File 'lib/azkaban-rb/visualization.rb', line 79 def name @name end |
#type ⇒ Object (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
#fontcolor ⇒ Object
86 87 88 |
# File 'lib/azkaban-rb/visualization.rb', line 86 def fontcolor return '#000000' end |
#to_s ⇒ Object
90 91 92 |
# File 'lib/azkaban-rb/visualization.rb', line 90 def to_s return "#{@type}: #{@name}" end |