Class: IMS::LTI::Models::ContentItems::FileItem

Inherits:
ContentItem show all
Defined in:
lib/ims/lti/models/content_items/file_item.rb

Constant Summary collapse

TYPE =
"FileItem"

Constants inherited from LTIModel

LTIModel::LTI_VERSION_2P0, LTIModel::LTI_VERSION_2P1

Instance Method Summary collapse

Methods inherited from ContentItem

from_json

Methods inherited from LTIModel

add_attribute, add_attributes, #as_json, #attributes, #attributes=, from_json, #from_json, inherit_attributes, inherited, #method_missing, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ FileItem

Returns a new instance of FileItem.



9
10
11
12
# File 'lib/ims/lti/models/content_items/file_item.rb', line 9

def initialize(attributes = {})
  super(attributes)
  self.type = TYPE
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IMS::LTI::Models::LTIModel