Module: EnsemblREST::Archive
- Defined in:
- lib/ensemblrest/archive.rb
Class Method Summary collapse
-
.id_get(id, options = {}) ⇒ JSON
Uses the given identifier to return the archived sequence.
-
.id_post(ids, options = {}) ⇒ JSON
Retrieve the archived sequence for a set of identifiers.
Class Method Details
.id_get(id, options = {}) ⇒ JSON
Uses the given identifier to return the archived sequence
21 22 23 |
# File 'lib/ensemblrest/archive.rb', line 21 def id_get(id, = {}) return EnsemblREST.get("archive/id/#{id}", {format: 'json'}.merge()) end |
.id_post(ids, options = {}) ⇒ JSON
Retrieve the archived sequence for a set of identifiers
30 31 32 |
# File 'lib/ensemblrest/archive.rb', line 30 def id_post(ids, = {}) return EnsemblREST.post("archive/id", {"id" => ids}, {format: 'json'}.merge()) end |