Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4746
4747
4748
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4746

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4750
4751
4752
4753
4754
4755
4756
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4750

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



4742
4743
4744
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4742

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

#valueObject



4738
4739
4740
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4738

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