class ScormEngine::Models::Destination
Attributes
id[RW]
@attr The ID of this destination. @return [String]
name[RW]
@attr The name of this destination. @return [String]
Public Class Methods
new_from_api(options = {})
click to toggle source
# File lib/scorm_engine/models/destination.rb, line 14 def self.new_from_api(options = {}) this = new this.options = options.dup this.id = options["id"] # get_destinations (plural) returns values in a nested 'data' field. # get_destination (singular) does not. data = options["data"] || options this.name = data["name"] this end