Class: IMS::LTI::Models::BaseUrlChoice

Inherits:
LTIModel
  • Object
show all
Defined in:
lib/ims/lti/models/base_url_choice.rb

Constant Summary

Constants inherited from LTIModel

LTIModel::LTI_VERSION_2P0, LTIModel::LTI_VERSION_2P1

Instance Method Summary collapse

Methods inherited from LTIModel

add_attribute, add_attributes, #as_json, #attributes, #attributes=, #from_json, from_json, inherit_attributes, inherited, #initialize, #method_missing, #to_json

Constructor Details

This class inherits a constructor from IMS::LTI::Models::LTIModel

Dynamic Method Handling

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

Instance Method Details

#default_message_urlObject



6
7
8
9
10
11
12
# File 'lib/ims/lti/models/base_url_choice.rb', line 6

def default_message_url
  if selector.nil? || (selector.applies_to && selector.applies_to.include?('MessageHandler'))
    secure_base_url || default_base_url || ''
  else
    ''
  end
end