Class: Bio::Hinv::Acc2hit

Inherits:
Object show all
Includes:
Common
Defined in:
lib/bio/io/hinv.rb

Overview

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

Instance Method Summary collapse

Methods included from Common

#query

Constructor Details

#initializeAcc2hit


118
119
120
# File 'lib/bio/io/hinv.rb', line 118

def initialize
  @url = BASE_URI + "acc2hit.php"
end

Instance Method Details

#resultObject

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

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

</H-Inv>


126
127
128
# File 'lib/bio/io/hinv.rb', line 126

def result
  @xml.elements['//H-INVITATIONAL-ID'].text
end