Module: ScientificNameClean::MultinomialName5

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

Instance Method Summary collapse

Instance Method Details

#canonicalObject



1039
1040
1041
1042
1043
1044
1045
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1039

def canonical
  if defined? aid.apply
    a.canonical + aid.canonical(c)
  else
    a.canonical + " " + c.canonical
  end
end

#detailsObject



1059
1060
1061
1062
1063
1064
1065
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1059

def details
  if defined? aid.apply
    a.details.merge(b.details).merge(aid.apply(c))
  else
    a.details.merge(b.details).merge(c.details)
  end
end

#hybridObject



1055
1056
1057
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1055

def hybrid
  c.hybrid rescue false
end

#posObject



1047
1048
1049
1050
1051
1052
1053
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1047

def pos
  if defined? aid.apply
    a.pos.merge(b.pos).merge(aid.pos(c))
  else
    a.pos.merge(b.pos).merge(c.pos)
  end
end

#valueObject



1031
1032
1033
1034
1035
1036
1037
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1031

def value
  if defined? aid.apply
    a.value + " " + b.value + aid.apply(c)
  else
    a.value + " " + b.value + " " + c.value
  end
end