Class: ScormEngine::Models::Learner
- Defined in:
- lib/scorm_engine/models/learner.rb
Instance Attribute Summary collapse
-
#first_name ⇒ String
The learner’s first name.
-
#id ⇒ String
The external identification of the learner.
-
#last_name ⇒ String
The learner’s last name.
Class Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#first_name ⇒ String
The learner’s first name.
12 13 14 |
# File 'lib/scorm_engine/models/learner.rb', line 12 def first_name @first_name end |
#id ⇒ String
The external identification of the learner.
7 8 9 |
# File 'lib/scorm_engine/models/learner.rb', line 7 def id @id end |
#last_name ⇒ String
The learner’s last name.
17 18 19 |
# File 'lib/scorm_engine/models/learner.rb', line 17 def last_name @last_name end |
Class Method Details
.new_from_api(options = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/scorm_engine/models/learner.rb', line 19 def self.new_from_api( = {}) this = new this. = .dup this.id = ["id"] this.first_name = ["firstName"] this.last_name = ["lastName"] this end |