Class: OmnifocusParser::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/omnifocus_parser/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(csv) ⇒ Parser

Returns a new instance of Parser.



5
6
7
# File 'lib/omnifocus_parser/parser.rb', line 5

def initialize(csv)
  @csv = csv
end

Instance Method Details

#parseObject



9
10
11
12
13
# File 'lib/omnifocus_parser/parser.rb', line 9

def parse
  CSV.foreach(@csv, headers: true).map do |row|
    Builder.from_row(row)
  end
end