pager_duty_rest_client 0.1 → 0.2

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.
@@ -1,3 +1,3 @@
1
1
  class PagerDutyRestClient
2
- VERSION = '0.1'
2
+ VERSION = '0.2'
3
3
  end
@@ -19,6 +19,16 @@ class PagerDutyRestClient
19
19
  authenticated_get(path, form_data)
20
20
  end
21
21
 
22
+ def get_incidents_data(extra_args = {})
23
+ path = "/api/v1/incidents"
24
+ authenticated_get(path, extra_args)
25
+ end
26
+
27
+ def get_incidents_count(extra_args = {})
28
+ path = "/api/v1/incidents/count"
29
+ authenticated_get(path, extra_args)
30
+ end
31
+
22
32
  private
23
33
 
24
34
  def authenticated_get(path, form_data)
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pager_duty_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- version: "0.1"
8
+ - 2
9
+ version: "0.2"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lucas Parry