Class: Bio::DDBJ::XML::RequestManager::REST

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/io/ddbjxml.rb

Overview

RequestManager using DDBJ REST interface

Constant Summary collapse

Uri =
'http://xml.nig.ac.jp/rest/Invoke'
Service =
'RequestManager'

Instance Method Summary collapse

Instance Method Details

#getAsyncResult(requestId) ⇒ Object



366
367
368
369
370
371
372
373
374
# File 'lib/bio/io/ddbjxml.rb', line 366

def getAsyncResult(requestId)
  params = {
    'service'   => Service,
    'method'    => 'getAsyncResult',
    'requestId' => requestId.to_s
  }
  r = Bio::Command.post_form(Uri, params)
  r.body
end