Class: INatGet::App::Task::ERB

Inherits:
INatGet::App::Task show all
Defined in:
lib/inat-get/app/core/task.rb

Constant Summary collapse

TRIM_MODE =
''

Instance Attribute Summary

Attributes inherited from INatGet::App::Task

#db, #name, #path

Instance Method Summary collapse

Methods inherited from INatGet::App::Task

#initialize, #logger, #prepare

Methods included from Data::DSL

#AND, #ANYTHING, #NOT, #NOTHING, #OR, #Q, #console, #erb_report, #finish_time, #get_identification, #get_observation, #get_place, #get_project, #get_taxon, #get_user, #now, #select_identifications, #select_observations, #select_places, #select_projects, #select_taxa, #select_users, #start_time, #time_range, #today, #version, #version!, #version?, #version_alias

Constructor Details

This class inherits a constructor from INatGet::App::Task

Instance Method Details

#executeObject



92
93
94
95
# File 'lib/inat-get/app/core/task.rb', line 92

def execute
  report = INatGet::Data::DSL::Report::ERB::new file: @path, trim_mode: TRIM_MODE
  report.save
end