Module: ScientificNameClean::SimpleAuthorship4

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4361
4362
4363
4364
4365
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4361

def details
  details = details_with_arg(:basionymAuthorTeam)
  details[:basionymAuthorTeam].merge!(super)
  details
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



4367
4368
4369
4370
4371
4372
4373
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4367

def details_with_arg(authorTeamType = 'basionymAuthorTeam')
  { :authorship => text_value,
    authorTeamType.to_sym => {
      :authorTeam => text_value,
    }
  }
end