promoter 0.9.4 → 0.9.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea27996c893857e6dd98b5e11c280e6f78fcaa1732c098af5047f5c46162f16d
4
- data.tar.gz: ad6d39654a606515e534637c54977e9e8541fd755bafcca0e587f51738b8d9e9
3
+ metadata.gz: dbd6e456c0719d85aaca8bebc2507d4795eb39ef65b3b77746ae9fa5e8465490
4
+ data.tar.gz: 67ad5648b169d116daa5dba666afcbef86c9173be49fb87d14ea6ba38f090d70
5
5
  SHA512:
6
- metadata.gz: d3844da7ec9900ea84248e0b467d760b6f5e1578803ac4ca4d9de5077c72556e0900225c5821c41601b46754331022c3a044fa79dc0b0d825a32ec63bcaf76d9
7
- data.tar.gz: b15f80e2d7a5421f8cf0cf3e9fa0410a8244674084e97265cb719ce755f3ab72715d7375fc0cfb7ca91e2e63a2d0b5619824af0baa013e7ddc8cdbc922557b6e
6
+ metadata.gz: f001488d666a2b29c6d5c0f89f38cff4c8683d9843447dcb91e3bee705ceb2cee44514bcf56c70ca75e0f7896f2d25b68d64ff1babe32c69d6e3b83c47893653
7
+ data.tar.gz: 4b222fbe8b3746dfdd0d2eb270198a3f64a7edfd458abbda92e36b62d9e06f32e95b2527bf422f3dca6b4e1fd6d4efda429a3c5fbe5db5dda292a1325ea757d4
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Promoter
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promoter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris O'Sullivan