questionpro_rails 0.1.2 → 0.1.3
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 +4 -4
- data/lib/questionpro_rails/section.rb +6 -2
- data/lib/questionpro_rails/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: 7fcab11682dbaa3b260e2442fd3654d9429440f6
|
4
|
+
data.tar.gz: 4edeff986cabc5ca935a43430f05a2f271c564b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2abb1dc43bb44579aec4ca73f16231db86fe0c511ec28fb97c04646b9fc4e3a952dded6c752c70dede8b8e64176c03e63554e4e6673fff87d95c522b180d5bf
|
7
|
+
data.tar.gz: c10601fbc1058b9a3d4ceb3757d557a341b69f5729647b0469b2f89395fdb2c1e798e2e30e325c0ce26d8251459281a2ced03e78e01e67b2faa0f51e29fcce90
|
@@ -6,13 +6,15 @@ module QuestionproRails
|
|
6
6
|
attr_reader :id, :num_tasks, :exact_min_answers, :orientation, :code,
|
7
7
|
:max_answers, :required, :has_page_break, :type,
|
8
8
|
:dynamic_explode_text, :video, :video_type, :min_answers,
|
9
|
-
:random, :random_section, :subtype, :mobile_friendly
|
9
|
+
:random, :random_section, :subtype, :mobile_friendly,
|
10
|
+
:title, :right_anchor, :left_anchor
|
10
11
|
|
11
12
|
# @return [Array<Hash>] Questions collected inside the section.
|
12
13
|
attr_reader :qp_questions
|
13
14
|
|
14
15
|
def initialize(attributes)
|
15
16
|
@id = attributes['sectionID']
|
17
|
+
@title = attributes['title']
|
16
18
|
@num_tasks = attributes['numTasks']
|
17
19
|
@exact_min_answers = attributes['exactMinAnswers']
|
18
20
|
@orientation = attributes['orientation']
|
@@ -29,7 +31,9 @@ module QuestionproRails
|
|
29
31
|
@random_section = attributes['randomSection']
|
30
32
|
@subtype = attributes['subtype']
|
31
33
|
@mobile_friendly = attributes['mobileFriendly']
|
32
|
-
@qp_questions = attributes['questions']
|
34
|
+
@qp_questions = attributes['questions']
|
35
|
+
@right_anchor = attributes['rightAnchor']
|
36
|
+
@left_anchor = attributes['leftAnchor']
|
33
37
|
end
|
34
38
|
|
35
39
|
# Extract the Questions from the hashes stored
|
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.
|
4
|
+
version: 0.1.3
|
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-
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|