hypertrack 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af70e2a0c4957cbcf8f8ca437702c5724b13a04a5f3f461844c3de21649c910c
|
4
|
+
data.tar.gz: 85cc6f93e2e639d757549d0b1f84cec6a3b731a587a0f032dd45e1feb8a03b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4a78e3a89dc9f904c121d677f0bdb89361e50e797276064f684e1bdd8312ffbc9c83593d5c091329a57496c781c8ecd0da06fcb0a418555f3209304c1c3ba3e
|
7
|
+
data.tar.gz: e0b56e7fc095502569b9daffc341d70277ab67afbc8314f39be826dba976d5152a344185cf6395bb18b8d352c4c339d80733db53fd10b51364ba7a4394e32ffc
|
@@ -10,6 +10,12 @@ module HyperTrack
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
def get_list(path, params, required_params=[])
|
14
|
+
if HyperTrack::ParamsValidator.valid_args?(params, required_params, self.class::VALID_ATTRIBUTE_VALUES)
|
15
|
+
api_path = "#{self.class::API_BASE_PATH}#{self.id}/" + path
|
16
|
+
result = HyperTrack::ApiClient.fetch(api_path, params)
|
17
|
+
end
|
18
|
+
end
|
13
19
|
end
|
14
20
|
end
|
15
21
|
end
|
@@ -16,5 +16,14 @@ module HyperTrack
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
|
+
def self.placeline(filter_params={})
|
20
|
+
api_result = HyperTrack::ApiClient.fetch(get_class_name::API_BASE_PATH, filter_params)
|
21
|
+
api_result['results'].each_with_index do |opts, idx|
|
22
|
+
api_result['results'][idx] = get_class_name.new(opts['id'], opts)
|
23
|
+
end
|
24
|
+
|
25
|
+
api_result['results']
|
26
|
+
end
|
27
|
+
|
19
28
|
end
|
20
29
|
end
|