2 # = lib/evo/taxonomy/sp_taxonomy.rb - SpTaxonomy class
4 # Copyright:: Copyright (C) 2006-2007 Christian M. Zmasek
5 # License:: GNU Lesser General Public License (LGPL)
7 # $Id: sp_taxonomy.rb,v 1.1 2008/12/30 05:28:00 cmzmasek Exp $
15 attr_accessor :code, :id, :scientific_name, :common_name
17 def initialize( code, id, scientific_name, common_name = nil )
18 @code = String.new( code.strip() )
19 @id = String.new( id.strip() )
20 @scientific_name = String.new( scientific_name.strip() )
21 if ( common_name == nil )
22 @common_name = String.new()
24 @common_name = String.new( common_name.strip() )
29 return Taxonomy.new( code, id, scientific_name, common_name )
33 code + " " + id + ": N=" + scientific_name
36 end # class SpTaxonomy