Class: IMS::LTI::Models::ResourceHandler

Inherits:
LTIModel
  • Object
show all
Defined in:
lib/ims/lti/models/resource_handler.rb

Constant Summary

Constants inherited from LTIModel

LTIModel::LTI_VERSION_2P0, LTIModel::LTI_VERSION_2P1

Instance Method Summary collapse

Methods inherited from LTIModel

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

Constructor Details

This class inherits a constructor from IMS::LTI::Models::LTIModel

Dynamic Method Handling

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

Instance Method Details

#default_descriptionObject



13
14
15
# File 'lib/ims/lti/models/resource_handler.rb', line 13

def default_description
  description && description.default_value
end

#default_nameObject



9
10
11
# File 'lib/ims/lti/models/resource_handler.rb', line 9

def default_name
  resource_name && resource_name.default_value
end

#messagesObject



17
18
19
# File 'lib/ims/lti/models/resource_handler.rb', line 17

def messages
  [*message]
end