questionpro_rails 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: f2e4a8be131a1d6814f8324c3c5824620c40dd5b
4
- data.tar.gz: bd71542099129363ed411144beededf7188c2714
3
+ metadata.gz: 4eade643fbb02d69e5ef97d4ce331af7361e6d6f
4
+ data.tar.gz: e0b19064790721766f898724b727177bd4060a59
5
5
  SHA512:
6
- metadata.gz: c7d793cfdd2b404a5d44e41cea1ea9d8b63bff421edb8edd26d8185e13084232877a1e7a581a1a5d5c0b9675bff2ffbe4c9f17733786eaf089f54514c8db9ef8
7
- data.tar.gz: 82cb50482fc33a5897d2ecd66b66f74cbbadad0bfed30f56cf8da433f13dd521e76970a67ed375dce041dcaacfb1d6e820bcd57be825fa93bda7e530011d7fcb
6
+ metadata.gz: fbf4c161ca20f274ff1d15fe424d12bf3d89dfea257d71939f560e0f1811c8e1585fdbbee253400b067e1a4b70b21d2391cc1a8ebf5e4f1ffbf814cf7ebec186
7
+ data.tar.gz: db7130260a809c7664a7f02b8bc1e811f11fed478c3c7eb57fde7de191dc15b0831c2a49d0a0212168420719b91d5442ad0e89578b67e731fa809e4ae8ce9b66
@@ -125,7 +125,6 @@ module QuestionproRails
125
125
  result_responses = result['response']['responses']
126
126
  result_responses.each do |response|
127
127
  new_response = SurveyResponse.new(response)
128
- new_response.original_object = response
129
128
  survey_responses.push(SurveyResponse.new(new_response))
130
129
  end
131
130
 
@@ -3,7 +3,7 @@ require "questionpro_rails/response_set"
3
3
  module QuestionproRails
4
4
  class SurveyResponse
5
5
 
6
- attr_reader :id, :country, :duplicate, :external_reference,
6
+ attr_acc :id, :country, :duplicate, :external_reference,
7
7
  :ip_address, :region, :response_status,
8
8
  :time_taken, :timestamp, :original_object
9
9
 
@@ -20,7 +20,8 @@ module QuestionproRails
20
20
  @qp_response_set = attributes['responseSet']
21
21
  @response_status = attributes['responseStatus']
22
22
  @time_taken = attributes['timeTaken']
23
- @timestamp = attributes['timestamp']
23
+ @timestamp = attributes['timestamp']
24
+ @original_object = attributes
24
25
  end
25
26
 
26
27
  # Extract the Response Set from the hash stored
@@ -1,4 +1,4 @@
1
1
  module QuestionproRails
2
2
  # Gem Version
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: questionpro_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Assem Deghady
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-24 00:00:00.000000000 Z
11
+ date: 2017-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler