class Bio::Hinv::Hit2acc

serv = Bio::Hinv::Hit2acc.new serv.query(“hit” => “HIT000022181”) puts serv.result

Public Class Methods

new() click to toggle source
    # File lib/bio/io/hinv.rb
137 def initialize
138   @url = BASE_URI + "hit2acc.php"
139 end

Public Instance Methods

result() click to toggle source

<?xml version=‘1.0’ encoding=‘UTF-8’?> <H-Inv>

<ACCESSION-NO>AK097327</ACCESSION-NO>

</H-Inv>

    # File lib/bio/io/hinv.rb
145 def result
146   @xml.elements['//ACCESSION-NO'].text
147 end