pseng_ekg_client 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pseng_ekg/client/applications.rb +10 -10
- data/lib/pseng_ekg/client/tasks.rb +10 -10
- data/lib/pseng_ekg/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: 9b8cd8b7b95cfe121c07afc7f56dc1d6fdee85e1
|
4
|
+
data.tar.gz: c1404cb0ae5ddd0b5f9036db969916b83395daf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c6e675408d43b505f18c92210b40d297e196ad03bf10eb4d820e28b3e85497f67afd643f872940702b0ee2f997eaa68705bb767e76bb1eac62aa9f1fdc412a
|
7
|
+
data.tar.gz: df0043e1e737c124a4a0f79c60e9bc8c256b01ab4e7a1fe1a3485de0b042e5485451c57bb35a740967a2e883d94fb45daf3c1b373ca9d6419ef169bfaf523d4a
|
@@ -2,24 +2,24 @@ module PsengEkg
|
|
2
2
|
class Client
|
3
3
|
module Applications
|
4
4
|
|
5
|
-
def application_index(
|
6
|
-
self.class.get("/api/v1/applications.json",
|
5
|
+
def application_index(params = {})
|
6
|
+
self.class.get("/api/v1/applications.json", query: params)
|
7
7
|
end
|
8
8
|
|
9
|
-
def application_show(application_id,
|
10
|
-
self.class.get("/api/v1/applications/#{application_id}.json",
|
9
|
+
def application_show(application_id, params = {})
|
10
|
+
self.class.get("/api/v1/applications/#{application_id}.json", query: params)
|
11
11
|
end
|
12
12
|
|
13
|
-
def application_create(
|
14
|
-
self.class.post("/api/v1/applications.json",
|
13
|
+
def application_create(params = {})
|
14
|
+
self.class.post("/api/v1/applications.json", query: params)
|
15
15
|
end
|
16
16
|
|
17
|
-
def application_update(applictation_id,
|
18
|
-
self.class.patch("/api/v1/applications/#{application_id}.json",
|
17
|
+
def application_update(applictation_id, params = {})
|
18
|
+
self.class.patch("/api/v1/applications/#{application_id}.json", query: params)
|
19
19
|
end
|
20
20
|
|
21
|
-
def application_destroy(applictation_id,
|
22
|
-
self.class.destroy("/api/v1/applications.json",
|
21
|
+
def application_destroy(applictation_id, params = {})
|
22
|
+
self.class.destroy("/api/v1/applications.json", query: params)
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
@@ -2,24 +2,24 @@ module PsengEkg
|
|
2
2
|
class Client
|
3
3
|
module Tasks
|
4
4
|
|
5
|
-
def task_index(application_id,
|
6
|
-
self.class.get("/api/v1/applications/#{application_id}/tasks.json",
|
5
|
+
def task_index(application_id, params = {})
|
6
|
+
self.class.get("/api/v1/applications/#{application_id}/tasks.json", query: params)
|
7
7
|
end
|
8
8
|
|
9
|
-
def task_show(application_id, task_id,
|
10
|
-
self.class.get("/api/v1/applications/#{application_id}/tasks/#{task_id}.json",
|
9
|
+
def task_show(application_id, task_id, params = {})
|
10
|
+
self.class.get("/api/v1/applications/#{application_id}/tasks/#{task_id}.json", query: params)
|
11
11
|
end
|
12
12
|
|
13
|
-
def task_create(application_id,
|
14
|
-
self.class.post("/api/v1/applications/#{application_id}/tasks.json",
|
13
|
+
def task_create(application_id, params = {})
|
14
|
+
self.class.post("/api/v1/applications/#{application_id}/tasks.json", query: params)
|
15
15
|
end
|
16
16
|
|
17
|
-
def task_update(applictation_id, task_id,
|
18
|
-
self.class.patch("/api/v1/applications/#{application_id}/tasks/#{task_id}.json",
|
17
|
+
def task_update(applictation_id, task_id, params = {})
|
18
|
+
self.class.patch("/api/v1/applications/#{application_id}/tasks/#{task_id}.json", query: params)
|
19
19
|
end
|
20
20
|
|
21
|
-
def task_destroy(applictation_id, task_id,
|
22
|
-
self.class.destroy("/api/v1/applications/#{application_id}/tasks/#{task_id}.json",
|
21
|
+
def task_destroy(applictation_id, task_id, params = {})
|
22
|
+
self.class.destroy("/api/v1/applications/#{application_id}/tasks/#{task_id}.json", query: params)
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
data/lib/pseng_ekg/version.rb
CHANGED