help_scout 0.2.1 → 0.3

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
  SHA1:
3
- metadata.gz: 84ed82a9f3681c34a83a181765b552f5dade1e46
4
- data.tar.gz: efbd004a12d715869a6dae7f20dfb8c706ee4284
3
+ metadata.gz: 142d4c3e8144de3dd310e059ae82b7eb2c0cf15e
4
+ data.tar.gz: 69f405e9219352846ed778332dfe27eab9861bde
5
5
  SHA512:
6
- metadata.gz: d2478f060d51ec89d7025f05d62fb2f6c338d377bcf2cfece5b427ee9ab7a6d3d61812a68a5477733d69112d881a822dd2fb208c8705f6c46189940f2ef92aa1
7
- data.tar.gz: 7e97f2a3d699280edd38664d6fb241083d39d13ce78834b9d80fdcc102ba64980315c1755eb32f0856fe55578f077a83e53c9909306a43ac98602e0c2e51203e
6
+ metadata.gz: b12967402db6b44675efd8e169aa6ac9ec4dce35d557584d811e0613780a64de89f4c6458cad2fd9a181faeef5954213cd81dadf331640a074292da2623ffac8
7
+ data.tar.gz: d505f18eed5c65d521e2d3c557b7563ca3ea84263247000133fef9c83023182e5dcfee6e7f9eb5895ffd103b3485e0cb2ac6d0f452b63557955289534ce82642
@@ -1,3 +1,3 @@
1
1
  class HelpScout
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3"
3
3
  end
data/lib/help_scout.rb CHANGED
@@ -97,6 +97,21 @@ class HelpScout
97
97
  get("mailboxes")
98
98
  end
99
99
 
100
+ # Public: Get ratings
101
+ #
102
+ # More info: http://developer.helpscout.net/help-desk-api/reports/user/ratings/
103
+ # 'rating' parameter required: 0 (for all ratings), 1 (Great), 2 (Okay), 3 (Not Good)
104
+ def reports_user_ratings(user_id, rating, start_date, end_date, options)
105
+ options = {
106
+ user: user_id,
107
+ rating: rating,
108
+ start: start_date,
109
+ end: end_date,
110
+ }
111
+
112
+ get("reports/user/ratings", options)
113
+ end
114
+
100
115
  protected
101
116
 
102
117
  def post(path, options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: help_scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Paagman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-09-27 00:00:00.000000000 Z
13
+ date: 2016-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty