Class: Bio::Hinv::IdSearch
- Inherits:
-
KeywordSearch
- Object
- KeywordSearch
- Bio::Hinv::IdSearch
- Defined in:
- lib/bio/io/hinv.rb
Overview
serv = Bio::Hinv::IdSearch.new serv.query(“query” => “HIT00002218*”, “id_type” => “H-INVITATIONAL-ID”, “start” => 1, “end” => 100) puts serv.result puts serv.size puts serv.start puts serv.end
Instance Method Summary collapse
-
#initialize ⇒ IdSearch
constructor
A new instance of IdSearch.
- #query(hash = {}) ⇒ Object
Methods inherited from KeywordSearch
Constructor Details
Instance Method Details
#query(hash = {}) ⇒ Object
429 430 431 432 433 434 435 436 437 |
# File 'lib/bio/io/hinv.rb', line 429 def query(hash = {}) default = { "id_type" => "H-INVITATIONAL-ID", "start" => 1, "end" => 100 } = default.update(hash) super() end |