class Bio::Hinv::Acc2hit

serv = Bio::Hinv::Acc2hit.new serv.query(“acc” => “BC053657”) puts serv.result

Public Class Methods

new() click to toggle source
    # File lib/bio/io/hinv.rb
118 def initialize
119   @url = BASE_URI + "acc2hit.php"
120 end

Public Instance Methods

result() click to toggle source

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

<H-INVITATIONAL-ID>HIT000053961</H-INVITATIONAL-ID>

</H-Inv>

    # File lib/bio/io/hinv.rb
126 def result
127   @xml.elements['//H-INVITATIONAL-ID'].text
128 end