class IMS::LTI::Models::ToolConsumerProfile
Constants
- CONTEXT
- MESSAGING_CAPABILITIES
- OUTCOMES_CAPABILITIES
- TYPE
Public Class Methods
new(attr = {})
click to toggle source
Calls superclass method
IMS::LTI::Models::LTIModel::new
# File lib/ims/lti/models/tool_consumer_profile.rb, line 18 def initialize(attr = {}) @context = [CONTEXT] @type = TYPE super(attr) end
Public Instance Methods
capabilities_offered()
click to toggle source
# File lib/ims/lti/models/tool_consumer_profile.rb, line 28 def capabilities_offered [*@capability_offered] end
reregistration_capable?()
click to toggle source
# File lib/ims/lti/models/tool_consumer_profile.rb, line 36 def reregistration_capable? @capability_offered.include?(Messages::ToolProxyUpdateRequest::MESSAGE_TYPE) end
security_profile_by_name(security_profile_name:)
click to toggle source
# File lib/ims/lti/models/tool_consumer_profile.rb, line 40 def security_profile_by_name(security_profile_name:) security_profiles.find { |sp| sp.security_profile_name == security_profile_name} end
security_profiles()
click to toggle source
# File lib/ims/lti/models/tool_consumer_profile.rb, line 32 def security_profiles [*@security_profile] end
services_offered()
click to toggle source
# File lib/ims/lti/models/tool_consumer_profile.rb, line 24 def services_offered [*@service_offered] end