Class: Bio::Hinv::Hit2acc

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

Overview

serv = Bio::Hinv::Hit2acc.new serv.query("hit" => "HIT000022181") puts serv.result

Instance Method Summary collapse

Methods included from Common

#query

Constructor Details

#initialize ⇒ Hit2acc

Returns a new instance of Hit2acc.



137
138
139
# File 'lib/bio/io/hinv.rb', line 137

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

Instance Method Details

#result ⇒ Object

AK097327


145
146
147
# File 'lib/bio/io/hinv.rb', line 145

def result
  @xml.elements['//ACCESSION-NO'].text
end