class IMS::LTI::ToolBase

Attributes

consumer_key[RW]

OAuth credentials

consumer_secret[RW]

OAuth credentials

Public Class Methods

new(consumer_key, consumer_secret, params={}) click to toggle source
# File lib/ims/lti/tool_base.rb, line 10
def initialize(consumer_key, consumer_secret, params={})
  @consumer_key = consumer_key
  @consumer_secret = consumer_secret
  @custom_params = {}
  @ext_params = {}
  @non_spec_params = {}
  process_params(params)
end

Public Instance Methods

post_service_request(url, content_type, body) click to toggle source

Convenience method for doing oauth signed requests to services that aren't supported by this library

# File lib/ims/lti/tool_base.rb, line 21
def post_service_request(url, content_type, body)
  IMS::LTI::post_service_request(@consumer_key,
                                 @consumer_secret,
                                 url,
                                 content_type,
                                 body)
end