Class: TemplateGenerator
- Inherits:
-
Object
- Object
- TemplateGenerator
- Defined in:
- lib/template_generator.rb
Class Method Summary collapse
Class Method Details
.template(radar_code) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/template_generator.rb', line 5 def self.template(radar_code) temporary_template = Tempfile.new(['temp_named_template', '.png']) system "convert -layers flatten #{background(radar_code)} #{topography(radar_code)} #{range(radar_code)} #{locations(radar_code)} #{temporary_template.path}" temporary_template.path end |