Module: Brand2csv
- Defined in:
- lib/brand2csv.rb,
lib/brand2csv/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.3.2"
Class Method Summary collapse
-
.run(timespan, marke = 'a*', swiss_only = false) ⇒ Object
class Swissreg.
Class Method Details
.run(timespan, marke = 'a*', swiss_only = false) ⇒ Object
class Swissreg
582 583 584 585 586 587 588 589 590 591 592 |
# File 'lib/brand2csv.rb', line 582 def Brand2csv::run(timespan, marke = 'a*', swiss_only = false) session = Swissreg.new(timespan, marke, swiss_only) begin session.parse_swissreg session.fetchresult rescue Interrupt, Net::HTTP::Persistent::Error puts "Unterbrochen. Vesuche #{session.results.size} Resultate zu speichern" end Swissreg::emitCsv(session.results, "#{timespan}.csv") session.results end |