class Bio::Hinv::Hit2acc

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

Public Class Methods

new() click to toggle source
# File lib/bio/io/hinv.rb, line 137
def initialize
  @url = BASE_URI + "hit2acc.php"
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, line 145
def result
  @xml.elements['//ACCESSION-NO'].text
end