rubyMorphbank 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/request.rb +2 -2
- data/test/test_rubyMorphbank.rb +0 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/request.rb
CHANGED
@@ -8,7 +8,7 @@ class Request
|
|
8
8
|
FORMAT = 'id'
|
9
9
|
|
10
10
|
# a subset of VALID_OPTIONS, these are concatenated in the request
|
11
|
-
URI_PARAMS = [:limit, :format, :depth, :objecttype, :
|
11
|
+
URI_PARAMS = [:limit, :format, :depth, :objecttype, :firstResult, :keywords, :id, :taxonName, :user, :group, :change, :lastDateChanged, :numChangeDays]
|
12
12
|
|
13
13
|
# possible options for a Request instance
|
14
14
|
VALID_OPTIONS = {'v3' => URI_PARAMS + [:version, :method] }
|
@@ -23,7 +23,7 @@ class Request
|
|
23
23
|
:format => FORMAT, # 'id' (brief results) or 'svc' (schema based results)
|
24
24
|
:depth => DEPTH,
|
25
25
|
:objecttype => OBJECTTYPE, # [nil, Taxon, Image, Character, Specimen, View, Matrix, Locality, Collection, OTU ] (nil = all)
|
26
|
-
:
|
26
|
+
:firstResult => 0,
|
27
27
|
:keywords => ''
|
28
28
|
}.merge!(options)
|
29
29
|
|
data/test/test_rubyMorphbank.rb
CHANGED