Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4474
4475
4476
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4474

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



4478
4479
4480
4481
4482
4483
4484
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4478

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



4470
4471
4472
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4470

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

#valueObject



4466
4467
4468
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4466

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