Class: Bio::Hinv::HixCnt

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

Overview

serv = Bio::Hinv::HixCnt.new serv.query puts serv.result

Instance Method Summary collapse

Methods included from Common

#query

Constructor Details

#initializeHixCnt

Returns a new instance of HixCnt.



313
314
315
# File 'lib/bio/io/hinv.rb', line 313

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

Instance Method Details

#resultObject

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

<LOCUS_CNT>36073</LOCUS_CNT>

</H-Inv>



321
322
323
# File 'lib/bio/io/hinv.rb', line 321

def result
  @xml.elements['//LOCUS_CNT'].text.to_i
end