class IMS::LTI::Services::ToolConsumerProfileService
Attributes
tcp[RW]
Public Class Methods
new(tool_consumer_profile)
click to toggle source
# File lib/ims/lti/services/tool_consumer_profile_service.rb, line 6 def initialize(tool_consumer_profile) @tcp = tool_consumer_profile end
Public Instance Methods
supports_capabilities?(capability, *capabilities)
click to toggle source
# File lib/ims/lti/services/tool_consumer_profile_service.rb, line 10 def supports_capabilities?(capability, *capabilities) capabilities.unshift(capability) (capabilities - tcp.capabilities_offered).empty? end