Class: ScormEngine::Models::Learner
- Inherits:
-
Object
- Object
- ScormEngine::Models::Learner
- Defined in:
- lib/scorm_engine/models/learner.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
TODO: Not sure we want this to be settable.
-
#id ⇒ Object
TODO: Not sure we want this to be settable.
-
#last_name ⇒ Object
TODO: Not sure we want this to be settable.
-
#options ⇒ Object
writeonly
Sets the attribute options.
Class Method Summary collapse
Instance Attribute Details
#first_name ⇒ Object
TODO: Not sure we want this to be settable. Will depend on how we go about creating/updating records. For now it makes it easier to create instances from API options hash.
10 11 12 |
# File 'lib/scorm_engine/models/learner.rb', line 10 def first_name @first_name end |
#id ⇒ Object
TODO: Not sure we want this to be settable. Will depend on how we go about creating/updating records. For now it makes it easier to create instances from API options hash.
10 11 12 |
# File 'lib/scorm_engine/models/learner.rb', line 10 def id @id end |
#last_name ⇒ Object
TODO: Not sure we want this to be settable. Will depend on how we go about creating/updating records. For now it makes it easier to create instances from API options hash.
10 11 12 |
# File 'lib/scorm_engine/models/learner.rb', line 10 def last_name @last_name end |
#options=(value) ⇒ Object
Sets the attribute options
4 5 6 |
# File 'lib/scorm_engine/models/learner.rb', line 4 def (value) @options = value end |
Class Method Details
.new_from_api(options = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/scorm_engine/models/learner.rb', line 12 def self.new_from_api( = {}) this = new this. = .dup this.id = ["id"] this.first_name = ["firstName"] this.last_name = ["lastName"] this end |