Class Ensembl::Core::Xref
In: lib/ensembl/core/activerecord.rb
Parent: DBConnection

DESCRIPTION

The Xref class provides an interface to the xref table. This table contains external references for objects in the database.

This class uses ActiveRecord to access data in the Ensembl database. See the general documentation of the Ensembl module for more information on what this means and what methods are available.

USAGE

 gene = Gene.find(1)
 gene.xrefs.each do |xref|
     puts xref.display_label + "\t" + xref.description
 end

Methods

to_s  

Public Instance methods

[Source]

      # File lib/ensembl/core/activerecord.rb, line 1498
1498:       def to_s
1499:         return self.external_db.db_name.to_s + ":" + self.display_label
1500:       end

[Validate]