class Bio::PhyloXML::Id

Attributes

provider[RW]

The provider of Id, for example, NCBI.

value[RW]

The value of Id.

Public Instance Methods

to_xml() click to toggle source

Converts elements to xml representation. Called by PhyloXML::Writer class.

    # File lib/bio-phyloxml/phyloxml_elements.rb
737 def to_xml
738   xml_node = LibXML::XML::Node.new('id', @value)
739   xml_node["provider"] = @provider if @provider != nil
740   return xml_node
741 end