class Bio::Hinv::Hix2hit

serv = Bio::Hinv::Hix2hit.new serv.query(“hix” => “HIX0000004”) puts serv.result

Public Class Methods

new() click to toggle source
    # File lib/bio/io/hinv.rb
286 def initialize
287   @url = BASE_URI + "hix2hit.php"
288 end

Public Instance Methods

result() click to toggle source

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

<H-INVITATIONAL-ID>HIT000012846</H-INVITATIONAL-ID>
<H-INVITATIONAL-ID>HIT000022124</H-INVITATIONAL-ID>
<H-INVITATIONAL-ID>HIT000007722</H-INVITATIONAL-ID>
  :
<H-INVITATIONAL-ID>HIT000262478</H-INVITATIONAL-ID>

</H-Inv>

    # File lib/bio/io/hinv.rb
298 def result
299   list = []
300   @xml.elements.each('//H-INVITATIONAL-ID') do |e|
301     list << e.text
302   end
303   return list
304 end