promoter 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promoter/feedback.rb +10 -1
- data/lib/promoter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbd6e456c0719d85aaca8bebc2507d4795eb39ef65b3b77746ae9fa5e8465490
|
4
|
+
data.tar.gz: 67ad5648b169d116daa5dba666afcbef86c9173be49fb87d14ea6ba38f090d70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f001488d666a2b29c6d5c0f89f38cff4c8683d9843447dcb91e3bee705ceb2cee44514bcf56c70ca75e0f7896f2d25b68d64ff1babe32c69d6e3b83c47893653
|
7
|
+
data.tar.gz: 4b222fbe8b3746dfdd0d2eb270198a3f64a7edfd458abbda92e36b62d9e06f32e95b2527bf422f3dca6b4e1fd6d4efda429a3c5fbe5db5dda292a1325ea757d4
|
data/lib/promoter/feedback.rb
CHANGED
@@ -3,7 +3,8 @@ module Promoter
|
|
3
3
|
class Feedback
|
4
4
|
|
5
5
|
attr_reader :id, :contact, :score, :score_type, :posted_date, :comment,
|
6
|
-
:follow_up_url, :url, :comment_updated_date, :status
|
6
|
+
:follow_up_url, :url, :comment_updated_date, :status,
|
7
|
+
:score_created, :score_modified
|
7
8
|
|
8
9
|
API_URL = "https://app.promoter.io/api/feedback"
|
9
10
|
|
@@ -20,6 +21,14 @@ module Promoter
|
|
20
21
|
@follow_up_url = attrs["followup_href"]
|
21
22
|
@follow_up_href = attrs["href"]
|
22
23
|
@status = attrs["status"]
|
24
|
+
if attrs["score_created"]
|
25
|
+
@score_created = Time.parse(attrs["score_created"])
|
26
|
+
end
|
27
|
+
if attrs["score_modified"]
|
28
|
+
@score_modified = Time.parse(attrs["score_modified"])
|
29
|
+
end
|
30
|
+
|
31
|
+
|
23
32
|
end
|
24
33
|
|
25
34
|
# Parameter Required Description
|
data/lib/promoter/version.rb
CHANGED