proxima 0.3.0 → 0.3.1
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/proxima/model.rb +2 -7
- data/lib/proxima/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: 47ae0c0e27eda30ff6330bb3fbe9bc7b80e24657
|
4
|
+
data.tar.gz: ca4f807c5fe9e51e1d369b91a477a51397989903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7623851cc48e493f9432dee836aca74fae7e5f9c7750623483a566f6c94eee9356b185d75fa13daf2928fd653be1b82a4d72756e707a9986c88f1101fa50a309
|
7
|
+
data.tar.gz: 20213077dbe0f46ad2bfb1d66d583e266c1227c0dbc38a0f065e02824b9b4faad1bf6b2778ab9c406818dfaf935183a7391d4b5d0f76f19f5a917d387eed426c
|
data/lib/proxima/model.rb
CHANGED
@@ -101,14 +101,9 @@ module Proxima
|
|
101
101
|
@response.headers[:x_total_count] || 0
|
102
102
|
end
|
103
103
|
|
104
|
-
def self.find_by_id(id, params = {}, opts =
|
105
|
-
if opts == nil
|
106
|
-
opts = params
|
107
|
-
params = {}
|
108
|
-
end
|
109
|
-
|
104
|
+
def self.find_by_id(id, params = {}, opts = {})
|
110
105
|
params[:id] = id
|
111
|
-
@response
|
106
|
+
@response = self.api.get self.find_by_id_path.call(params), opts
|
112
107
|
|
113
108
|
return nil unless @response.code == 200
|
114
109
|
|
data/lib/proxima/version.rb
CHANGED