Class: Subspecies

Inherits:
Taxon
  • Object
show all
Defined in:
app/models/subspecies.rb

Instance Method Summary (collapse)

Methods inherited from Taxon

#available?, #children, #convert_asterisks_to_daggers!, #current_valid_name, #excluded?, find_genus_group_by_name, find_name, #get_statistics, get_statistics, #homonym?, #homonym_replaced_by?, #incertae_sedis_in?, #invalid?, massage_count, #rank, statistics, #synonym?, #synonym_of?, #unavailable?, #unidentifiable?, #unresolved_homonym?

Instance Method Details

- (Object) full_label



14
15
16
# File 'app/models/subspecies.rb', line 14

def full_label
  "<i>#{full_name}</i>"
end

- (Object) full_name



18
19
20
# File 'app/models/subspecies.rb', line 18

def full_name
  "#{species.genus.name} #{species.name} #{name}"
end

- (Object) set_parent_taxa



9
10
11
12
# File 'app/models/subspecies.rb', line 9

def set_parent_taxa
  self.subfamily = species.subfamily
  self.genus = species.genus
end

- (Object) statistics



22
23
# File 'app/models/subspecies.rb', line 22

def statistics
end