Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4952
4953
4954
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4952

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4956
4957
4958
4959
4960
4961
4962
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4956

def details_with_arg(authorTeamType = "basionymAuthorTeam")
  { :authorship => text_value,
    authorTeamType.to_sym => {
      :authorTeam => a.text_value.strip
    }.merge(a.details).merge(b.details)
  }
end

#posObject



4948
4949
4950
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4948

def pos
  a.pos.merge(b.pos)
end

#valueObject



4944
4945
4946
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4944

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