Class: Taxamatch::Atomizer
- Inherits:
-
Object
- Object
- Taxamatch::Atomizer
- Defined in:
- lib/taxamatch_rb/atomizer.rb
Instance Method Summary collapse
-
#initialize ⇒ Atomizer
constructor
A new instance of Atomizer.
- #parse(name) ⇒ Object
- #parsed_raw ⇒ Object
Constructor Details
#initialize ⇒ Atomizer
Returns a new instance of Atomizer.
7 8 9 10 11 |
# File 'lib/taxamatch_rb/atomizer.rb', line 7 def initialize @parser = ScientificNameParser.new @parsed_raw = nil @res = {} end |
Instance Method Details
#parse(name) ⇒ Object
13 14 15 16 17 |
# File 'lib/taxamatch_rb/atomizer.rb', line 13 def parse(name) @res = {:all_authors => [], :all_years => []} @parsed_raw = @parser.parse(name)[:scientificName] organize_results end |
#parsed_raw ⇒ Object
19 20 21 |
# File 'lib/taxamatch_rb/atomizer.rb', line 19 def parsed_raw return @parsed_raw end |