isurvey 0.0.3 → 0.0.4
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 +8 -8
- data/isurvey.gemspec +2 -0
- data/lib/isurvey/version.rb +1 -1
- data/lib/isurvey.rb +12 -12
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2E2NDAzOGIxNTk5M2RlZmU3M2Q2ZGIwNWVhNmRhMTAwOWFlODI1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmM0Mjc3NmQ1MDk2Yjg0Y2JlYTBmODgyMTdlM2RlYTc5OTI5ZTgxOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjU0ZDllMDBlMTY0ZDAwMTE1YjIyMjc2MmU2NDM4ZjQ2NzRkNWZkMjEwZmQy
|
10
|
+
OTFjMmJmYmNkZWJkNzc0ZmExMGRjOTM3YmYyNjJhODkzMTM4MGJlNTFhMTAz
|
11
|
+
NmMyOWI0ODc0ZWNkYTY2OTE3NWMwZjMyOGM5ZGJiYWEwZTE2MjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWEwNWZjMzFmNDI4NTM2YjQ3ODgxYjc0MDIyZDBjNDU4MzkzMzYzOWZhZmU4
|
14
|
+
MWMyZjIwMWU2MzliYTRkZDYzYzZkYmI0ZTgwNjc2Nzk3NTZmMWE2YWIwMzhi
|
15
|
+
YzQ3MGRhMzgxNTI1ODlmZjQxNTYzNDQ2MTdjZTg4OTM5MGM0MGE=
|
data/isurvey.gemspec
CHANGED
data/lib/isurvey/version.rb
CHANGED
data/lib/isurvey.rb
CHANGED
@@ -37,7 +37,7 @@ module Isurvey
|
|
37
37
|
def self.questions
|
38
38
|
unless @questions
|
39
39
|
@questions = []
|
40
|
-
screens.each do |question|
|
40
|
+
self.screens.each do |question|
|
41
41
|
@questions << question
|
42
42
|
end
|
43
43
|
end
|
@@ -56,7 +56,7 @@ module Isurvey
|
|
56
56
|
|
57
57
|
|
58
58
|
def self.question_by_screen_id(id)
|
59
|
-
screens.each do |question|
|
59
|
+
self.screens.each do |question|
|
60
60
|
if question[:screen_id] == id
|
61
61
|
return question[:screen_text]
|
62
62
|
end
|
@@ -84,18 +84,18 @@ module Isurvey
|
|
84
84
|
end
|
85
85
|
@answers
|
86
86
|
end
|
87
|
-
end
|
88
87
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
private
|
89
|
+
def self.survey
|
90
|
+
SOAPClient.export_survey.body[:export_survey_response][:export_survey_result]
|
91
|
+
end
|
93
92
|
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
def self.survey_results
|
94
|
+
SOAPClient.export_survey_results.body[:export_survey_results_response][:export_survey_results_result][:survey_result]
|
95
|
+
end
|
97
96
|
|
98
|
-
|
99
|
-
|
97
|
+
def self.screens
|
98
|
+
survey[:screens][:screen]
|
99
|
+
end
|
100
100
|
end
|
101
101
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isurvey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Nipper
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: savon
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.0'
|
55
69
|
description: Communicate with the iSurvey SOAP api.
|
56
70
|
email:
|
57
71
|
- mjn4406@gmail.com
|