class ScormEngine::Models::Learner

Attributes

first_name[RW]

@attr The learner's first name. @return [String]

id[RW]

@attr The external identification of the learner. @return [String]

last_name[RW]

@attr The learner's last name. @return [String]

Public Class Methods

new_from_api(options = {}) click to toggle source
# File lib/scorm_engine/models/learner.rb, line 19
def self.new_from_api(options = {})
  this = new

  this.options = options.dup
  this.id = options["id"]
  this.first_name = options["firstName"]
  this.last_name = options["lastName"]

  this
end