class Bio::Hinv::Hix2hit

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

Public Class Methods

new() click to toggle source
# File lib/bio/io/hinv.rb, line 286
def initialize
  @url = BASE_URI + "hix2hit.php"
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, line 298
def result
  list = []
  @xml.elements.each('//H-INVITATIONAL-ID') do |e|
    list << e.text
  end
  return list
end