Class: Bio::Hinv::HixCnt
Overview
serv = Bio::Hinv::HixCnt.new serv.query puts serv.result
Instance Method Summary collapse
-
#initialize ⇒ HixCnt
constructor
A new instance of HixCnt.
-
#result ⇒ Object
<?xml version=‘1.0’ encoding=‘UTF-8’?> <H-Inv> <LOCUS_CNT>36073</LOCUS_CNT> </H-Inv>.
Methods included from Common
Constructor Details
#initialize ⇒ HixCnt
Returns a new instance of HixCnt.
314 315 316 |
# File 'lib/bio/io/hinv.rb', line 314 def initialize @url = BASE_URI + "hix_cnt.php" end |
Instance Method Details
#result ⇒ Object
<?xml version=‘1.0’ encoding=‘UTF-8’?> <H-Inv>
<LOCUS_CNT>36073</LOCUS_CNT>
</H-Inv>
322 323 324 |
# File 'lib/bio/io/hinv.rb', line 322 def result @xml.elements['//LOCUS_CNT'].text.to_i end |