Class: RakeGraph::DataNode

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

Instance Attribute Summary collapse

Attributes inherited from Node

#name, #type

Instance Method Summary collapse

Methods inherited from Node

#fontcolor, #to_s

Constructor Details

#initialize(filename) ⇒ DataNode

Returns a new instance of DataNode.



128
129
130
131
# File 'lib/azkaban-rb/visualization.rb', line 128

def initialize(filename)
  super(RakeGraph.data_name(filename), "data")
  @filename = filename
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



126
127
128
# File 'lib/azkaban-rb/visualization.rb', line 126

def filename
  @filename
end

Instance Method Details

#fillcolorObject



142
143
144
# File 'lib/azkaban-rb/visualization.rb', line 142

def fillcolor
  return '#d2e3f3'
end

#labelObject



133
134
135
136
# File 'lib/azkaban-rb/visualization.rb', line 133

def label
  label = @filename
  return "<#{label}>".to_sym
end

#shapeObject



138
139
140
# File 'lib/azkaban-rb/visualization.rb', line 138

def shape
  return :box
end