Module: ScientificNameClean::SimpleAuthorship1

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4912
4913
4914
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4912

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4916
4917
4918
4919
4920
4921
4922
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4916

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



4908
4909
4910
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4908

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

#valueObject



4904
4905
4906
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4904

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