Module: ScientificNameClean::SpeciesWordHybrid1

Defined in:
lib/biodiversity/parser/scientific_name_clean.rb

Instance Method Summary collapse

Instance Method Details

#canonicalObject



4851
4852
4853
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4851

def canonical
  b.value
end

#detailsObject



4863
4864
4865
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4863

def details
  {:species => {:epitheton => b.value}}
end

#hybridObject



4855
4856
4857
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4855

def hybrid
  true
end

#posObject



4859
4860
4861
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4859

def pos
  {b.interval.begin => ['species', b.interval.end]}
end

#valueObject



4847
4848
4849
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4847

def value
  a.value + " " + b.value
end