cantook 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cantook/base.rb +4 -2
- data/lib/cantook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b84442f57dfc8042222ad125fcdc7690385f6937
|
|
4
|
+
data.tar.gz: b5b33e1abc76c92ecb5602b84cfdd97e31fa6536
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21fc8493504bf569fc6778d82f5a773b56bba7e9d7ee6a92a3f4d11fbd7d4e27d9ec7f2466632c74ec194682b2c77409460b30a211f0db3fc381460c29074e77
|
|
7
|
+
data.tar.gz: 16b89886400d77d1274527eb6d0b658036fe7926118aa1a4f3b3a8d9d2d02bf4277abfc30fecb5a4b9f8b13decd492c8eaa94c9d2295169b6f6c1a13f7a34bda
|
data/lib/cantook/base.rb
CHANGED
|
@@ -24,7 +24,8 @@ module Cantook
|
|
|
24
24
|
:response,
|
|
25
25
|
:query,
|
|
26
26
|
:sale_state,
|
|
27
|
-
:currency
|
|
27
|
+
:currency,
|
|
28
|
+
:country
|
|
28
29
|
|
|
29
30
|
# @param [Hash] params
|
|
30
31
|
# @option params [String] :username - your Cantook API username
|
|
@@ -44,13 +45,14 @@ module Cantook
|
|
|
44
45
|
@format = params[:format]
|
|
45
46
|
@sale_state = params[:sale_state]
|
|
46
47
|
@currency = params[:isbn]
|
|
48
|
+
@country = params[:country]
|
|
47
49
|
@base_url = "https://#{platform}/api/organisations/#{organisation_id}"
|
|
48
50
|
@auth = { username: username, password: password }
|
|
49
51
|
end
|
|
50
52
|
|
|
51
53
|
# @return [Hash] A basic hash of options common to all Cantook requests
|
|
52
54
|
def base_options
|
|
53
|
-
{ format: format, isbn: isbn, sale_state: sale_state, currency: currency }
|
|
55
|
+
{ format: format, isbn: isbn, sale_state: sale_state, currency: currency, country: country }
|
|
54
56
|
end
|
|
55
57
|
private :base_options
|
|
56
58
|
|
data/lib/cantook/version.rb
CHANGED