Module: IMS::LTI::Extensions::Base

Included in:
Content::ToolConsumer, Content::ToolProvider, OutcomeRequest, OutcomeResponse, ToolBase
Defined in:
lib/ims/lti/extensions.rb

Overview

Base functionality for creating LTI extension modules See the test for this class for a simple example of how to create an extension module

Instance Method Summary collapse

Instance Method Details

#extend_outcome_request(request) ⇒ Object



16
17
18
19
20
21
# File 'lib/ims/lti/extensions.rb', line 16

def extend_outcome_request(request)
  outcome_request_extensions.each do |ext|
    request.extend(ext)
  end
  request
end

#extend_outcome_response(response) ⇒ Object



23
24
25
26
27
28
# File 'lib/ims/lti/extensions.rb', line 23

def extend_outcome_response(response)
  outcome_response_extensions.each do |ext|
    response.extend(ext)
  end
  response
end

#outcome_request_extensionsObject



8
9
10
# File 'lib/ims/lti/extensions.rb', line 8

def outcome_request_extensions
  []
end

#outcome_response_extensionsObject



12
13
14
# File 'lib/ims/lti/extensions.rb', line 12

def outcome_response_extensions
  []
end