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/db/phyloxml/phyloxml_elements.rb, line 748
def to_xml
  xml_node = LibXML::XML::Node.new('id', @value)
  xml_node["provider"] = @provider if @provider != nil
  return xml_node
end