Class: Heatmap::Map
- Inherits:
-
Object
- Object
- Heatmap::Map
- Defined in:
- lib/heatmap/map.rb
Instance Attribute Summary collapse
-
#area ⇒ Object
Returns the value of attribute area.
Instance Method Summary collapse
- #<<(item) ⇒ Object
-
#initialize ⇒ Map
constructor
A new instance of Map.
- #output(file = 'heatmap.png') ⇒ Object
Constructor Details
#initialize ⇒ Map
Returns a new instance of Map.
6 7 8 9 10 |
# File 'lib/heatmap/map.rb', line 6 def initialize location = `which convert` || `where convert` raise(RuntimeError, "You need to have ImageMagick installed!") if location.nil? || location.strip.empty? @area = [] end |
Instance Attribute Details
#area ⇒ Object
Returns the value of attribute area.
4 5 6 |
# File 'lib/heatmap/map.rb', line 4 def area @area end |