Class: IMS::LTI::Models::ToolConsumerProfile
- Defined in:
- lib/ims/lti/models/tool_consumer_profile.rb
Constant Summary collapse
- CONTEXT =
"http://purl.imsglobal.org/ctx/lti/v2/ToolConsumerProfile"- TYPE =
"ToolConsumerProfile"- MESSAGING_CAPABILITIES =
%w(basic-lti-launch-request)- OUTCOMES_CAPABILITIES =
%w(Result.autocreate)
Constants inherited from LTIModel
LTIModel::LTI_VERSION_2P0, LTIModel::LTI_VERSION_2P1
Instance Method Summary collapse
- #capabilities_offered ⇒ Object
-
#initialize(attr = {}) ⇒ ToolConsumerProfile
constructor
A new instance of ToolConsumerProfile.
- #reregistration_capable? ⇒ Boolean
- #security_profiles ⇒ Object
- #services_offered ⇒ Object
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 = {}) ⇒ ToolConsumerProfile
Returns a new instance of ToolConsumerProfile.
17 18 19 20 21 |
# File 'lib/ims/lti/models/tool_consumer_profile.rb', line 17 def initialize(attr = {}) @context = [CONTEXT] @type = TYPE super(attr) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IMS::LTI::Models::LTIModel
Instance Method Details
#capabilities_offered ⇒ Object
27 28 29 |
# File 'lib/ims/lti/models/tool_consumer_profile.rb', line 27 def capabilities_offered [*@capability_offered] end |
#reregistration_capable? ⇒ Boolean
35 36 37 |
# File 'lib/ims/lti/models/tool_consumer_profile.rb', line 35 def reregistration_capable? @capability_offered.include?(Messages::ToolProxyReregistrationRequest::MESSAGE_TYPE) end |
#security_profiles ⇒ Object
31 32 33 |
# File 'lib/ims/lti/models/tool_consumer_profile.rb', line 31 def security_profiles [*@security_profile] end |
#services_offered ⇒ Object
23 24 25 |
# File 'lib/ims/lti/models/tool_consumer_profile.rb', line 23 def services_offered [*@service_offered] end |