Class: ScormEngine::Models::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/scorm_engine/models/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#options=(value) ⇒ Object

Sets the attribute options

Parameters:

  • value

    the value to set the attribute options to.



4
5
6
# File 'lib/scorm_engine/models/base.rb', line 4

def options=(value)
  @options = value
end

Instance Method Details

#to_hashHash

Return a hashified representation of the object.

This hash should not be used to access individual data elements unavailable via standard accessors, but only for use in marshaling of the data.

Returns:

  • (Hash)


16
17
18
# File 'lib/scorm_engine/models/base.rb', line 16

def to_hash
  options
end