gotransverse-tract-api 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gotransverse-tract-api.rb +2 -2
- data/lib/gotransverse-tract-api/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: 8f66583a7f52b80678cc07aa21d0c49b83467656
|
4
|
+
data.tar.gz: bc03c7314b910b6cbd40e4eeecae0eec0bc4d094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da9c9e42ee00345cabaef8fdf8330912ebb276319f4f3a5b642d87eb640a46395081dfed5ea84d5ede6a4fa9fa7efd43c2a18e48cd48388db029134c96009068
|
7
|
+
data.tar.gz: 6ee0542a4d1de37ffa5a7ba51cbece1fb1635e55834315437924827d3e67a092b418ca938f447b5b2cb42c662c52e7cc5a790dfce05fb0724e834e274ad88192
|
@@ -96,7 +96,7 @@ module GoTransverseTractApi
|
|
96
96
|
# @param {Class} klass
|
97
97
|
#
|
98
98
|
def self.get_api_url_for klass
|
99
|
-
"#{GoTransverseTractApi.configuration.tract_api_url}/#{klass.
|
99
|
+
"#{GoTransverseTractApi.configuration.tract_api_url}/#{klass.name.camelize(:lower).pluralize}"
|
100
100
|
end
|
101
101
|
|
102
102
|
#
|
@@ -155,7 +155,7 @@ module GoTransverseTractApi
|
|
155
155
|
# @param {Hash} api_params (optional)
|
156
156
|
#
|
157
157
|
def self.get_cached_response_for(klass, api_params={})
|
158
|
-
key = "#{klass.
|
158
|
+
key = "#{klass.name}.#{api_params.sort}"
|
159
159
|
|
160
160
|
return Rails.cache.fetch(key, expires_in: 10.minutes) do
|
161
161
|
self.get_response_from(klass, api_params)
|