Class: IMS::LTI::Models::ToolProxy

Inherits:
LTIModel
  • Object
show all
Defined in:
lib/ims/lti/models/tool_proxy.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, #method_missing, #to_json

Constructor Details

#initialize(attr = {}) ⇒ ToolProxy

Returns a new instance of ToolProxy.



11
12
13
14
15
# File 'lib/ims/lti/models/tool_proxy.rb', line 11

def initialize(attr = {})
  @context = ['http://purl.imsglobal.org/ctx/lti/v2/ToolProxy']
  super(attr)
  @type = 'ToolProxy'
end

Dynamic Method Handling

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

Instance Method Details

#enabled_capabilitiesObject



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

def enabled_capabilities
  [*enabled_capability]
end