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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 981b4801aa8843d8d3e465d1a87cce1c763d28e9
4
- data.tar.gz: b0e778ad2fc131bc23f88333334332d394a117b4
3
+ metadata.gz: 7fcab11682dbaa3b260e2442fd3654d9429440f6
4
+ data.tar.gz: 4edeff986cabc5ca935a43430f05a2f271c564b8
5
5
  SHA512:
6
- metadata.gz: 9a0bbceb8ce6bf9e055e3d190bcff9586612fe112bc5f94ebd69115135cd124522393e013ce9c2da26e21c020f28fa58737233e05932a6ed0443dd13e2b87456
7
- data.tar.gz: eb0e2033802ccfd10ac479be049b14286401904e4abc2e5546190e9637b08084a1bdb71fa6ce654863d7e82e02bd845ef41c9f8346d23810f81732fcf54bcb5d
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
@@ -1,4 +1,4 @@
1
1
  module QuestionproRails
2
2
  # Gem Version
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler