Class: IMS::LTI::Models::Messages::RegistrationRequest

Inherits:
RequestMessage show all
Defined in:
lib/ims/lti/models/messages/registration_request.rb

Constant Summary collapse

MESSAGE_TYPE =
'ToolProxyRegistrationRequest'

Constants inherited from Message

Message::CUSTOM_PREFIX, Message::EXTENSION_PREFIX, Message::LAUNCH_TARGET_IFRAME, Message::LAUNCH_TARGET_WINDOW, Message::OAUTH_KEYS

Instance Attribute Summary

Attributes inherited from Message

#custom_params, #ext_params, #message_authenticator, #unknown_params

Instance Method Summary collapse

Methods inherited from Message

#add_custom_params, add_deprecated_params, add_optional_params, add_recommended_params, add_required_params, #deprecated_params, deprecated_params, descendants, generate, #get_custom_params, #get_ext_params, inherited, #jwt_params, #method_missing, #oauth_params, #optional_params, optional_params, #parameters, parse_jwt, #post_params, recommended_params, #recommended_params, required_params, #required_params, #signed_post_params, #to_jwt

Constructor Details

#initialize(attrs = {}) ⇒ RegistrationRequest

Returns a new instance of RegistrationRequest.



10
11
12
13
# File 'lib/ims/lti/models/messages/registration_request.rb', line 10

def initialize(attrs = {})
  super(attrs)
  self.lti_message_type = MESSAGE_TYPE
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IMS::LTI::Models::Messages::Message

Instance Method Details

#generate_key_and_passwordObject



15
16
17
# File 'lib/ims/lti/models/messages/registration_request.rb', line 15

def generate_key_and_password
  self.reg_key, self.reg_password = 2.times.map { SecureRandom.uuid }
end