Module: Brand2csv
- Defined in:
- lib/brand2csv.rb,
lib/brand2csv/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.2.2"
Class Method Summary collapse
-
.run(timespan, marke = 'a*') ⇒ Object
class Swissreg.
Class Method Details
.run(timespan, marke = 'a*') ⇒ Object
class Swissreg
538 539 540 541 542 543 544 545 546 547 548 |
# File 'lib/brand2csv.rb', line 538 def Brand2csv::run(timespan, marke = 'a*') session = Swissreg.new(timespan, marke) 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 |