Class: Bio::Hinv::HitCnt

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

Overview

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

Instance Method Summary collapse

Methods included from Common

#query

Constructor Details

#initializeHitCnt

Returns a new instance of HitCnt.



157
158
159
# File 'lib/bio/io/hinv.rb', line 157

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

Instance Method Details

#resultObject

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

<TRANSCRIPT_CNT>187156</TRANSCRIPT_CNT>

</H-Inv>



165
166
167
# File 'lib/bio/io/hinv.rb', line 165

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