electric_profile_ruby 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/electric_profile_ruby/profiler.rb +4 -1
- data/lib/electric_profile_ruby/question.rb +4 -1
- data/lib/electric_profile_ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7520e1512d18763ac1c4a6e1693ef9c51b020bd
|
4
|
+
data.tar.gz: 37dacdc7c02edb31aef5813c5ae9fc48389abee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 447b0b0253f74816f18c7c13df43bc0173296b5a6b5e476ff8e10b9e1be0b21b4f2848812aad8dc707c983ee7350861565b84c96b83adf41ffb821387d0b7cd5
|
7
|
+
data.tar.gz: 3ecdcedbb87a6fec5b2a8f1a90df15d3c7b9575fa14db0ef149214b61431efc5a73cea0645a9cdffc7a9c5ce252a7c04b58e441c99b3d912c4eec34ceb5ef23e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module ElectricProfile
|
2
2
|
|
3
3
|
class Profiler
|
4
|
-
attr_accessor :id, :customerId, :name, :listQuestionsId, :introMessage, :exitMessage, :hideAnsweredQuestions, :callbackType, :error
|
4
|
+
attr_accessor :id, :customerId, :name, :listQuestionsId, :introMessage, :exitMessage, :hideAnsweredQuestions, :questionOrder, :callbackType, :error
|
5
5
|
|
6
6
|
def initialize(atts)
|
7
7
|
atts = atts.inject({}){ |memo, (k, v) | memo[k.to_sym] = v; memo }
|
@@ -12,6 +12,7 @@ module ElectricProfile
|
|
12
12
|
@introMessage = atts[:introMessage]
|
13
13
|
@exitMessage = atts[:exitMessage]
|
14
14
|
@hideAnsweredQuestions = atts[:hideAnsweredQuestions] || false
|
15
|
+
@questionOrder = atts[:questionOrder]
|
15
16
|
@callbackType = atts[:callbackType]
|
16
17
|
end
|
17
18
|
|
@@ -31,6 +32,7 @@ module ElectricProfile
|
|
31
32
|
introMessage: @introMessage,
|
32
33
|
exitMessage: @exitMessage,
|
33
34
|
hideAnsweredQuestions: @hideAnsweredQuestions,
|
35
|
+
questionOrder: @questionOrder,
|
34
36
|
callbackType: @callbackType
|
35
37
|
}
|
36
38
|
if @client.create_profiler(attributes)
|
@@ -53,6 +55,7 @@ module ElectricProfile
|
|
53
55
|
introMessage: @introMessage,
|
54
56
|
exitMessage: @exitMessage,
|
55
57
|
hideAnsweredQuestions: @hideAnsweredQuestions,
|
58
|
+
questionOrder: @questionOrder,
|
56
59
|
callbackType: @callbackType
|
57
60
|
}
|
58
61
|
if @client.update_profiler(attributes)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ElectricProfile
|
2
2
|
|
3
3
|
class Question
|
4
|
-
attr_accessor :id, :customerId, :name, :prompt, :type, :answerOptions, :allowMultiple, :categories, :error, :exclusiveAnswerOptions, :regExValidation, :regExValidationMessage
|
4
|
+
attr_accessor :id, :customerId, :name, :prompt, :type, :answerOptions, :answerOptionOrder, :allowMultiple, :categories, :error, :exclusiveAnswerOptions, :regExValidation, :regExValidationMessage
|
5
5
|
TYPES = ['multi_choice', 'number', 'short_text', 'long_text']
|
6
6
|
|
7
7
|
def initialize(atts)
|
@@ -15,6 +15,7 @@ module ElectricProfile
|
|
15
15
|
@allowMultiple = atts[:allowMultiple] || false
|
16
16
|
@categories = atts[:categories] || []
|
17
17
|
@exclusiveAnswerOptions = atts[:exclusiveAnswerOptions]
|
18
|
+
@answerOptionOrder = atts[:answerOptionOrder]
|
18
19
|
@regExValidation = atts[:regExValidation]
|
19
20
|
@regExValidationMessage = atts[:regExValidationMessage]
|
20
21
|
end
|
@@ -37,6 +38,7 @@ module ElectricProfile
|
|
37
38
|
allowMultiple: @allowMultiple,
|
38
39
|
categories: @categories,
|
39
40
|
exclusiveAnswerOptions: @exclusiveAnswerOptions,
|
41
|
+
answerOptionOrder: @answerOptionOrder,
|
40
42
|
regExValidation: @regExValidation,
|
41
43
|
regExValidationMessage: @regExValidationMessage
|
42
44
|
}
|
@@ -62,6 +64,7 @@ module ElectricProfile
|
|
62
64
|
allowMultiple: @allowMultiple,
|
63
65
|
categories: @categories,
|
64
66
|
exclusiveAnswerOptions: @exclusiveAnswerOptions,
|
67
|
+
answerOptionOrder: @answerOptionOrder,
|
65
68
|
regExValidation: @regExValidation,
|
66
69
|
regExValidationMessage: @regExValidationMessage
|
67
70
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: electric_profile_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Alston
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|