Class: IMS::LTI::Models::Messages::RegistrationRequest
- Inherits:
-
RequestMessage
- Object
- Message
- RequestMessage
- IMS::LTI::Models::Messages::RegistrationRequest
- 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
- #generate_key_and_password ⇒ Object
-
#initialize(attrs = {}) ⇒ RegistrationRequest
constructor
A new instance of RegistrationRequest.
Methods inherited from Message
#add_custom_params, add_deprecated_params, add_optional_params, add_recommended_params, add_required_params, convert_param_values_to_crlf_endings, #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. = 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_password ⇒ Object
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 |