Class: IMS::LTI::Models::ToolProfile

Inherits:
LTIModel
  • Object
show all
Defined in:
lib/ims/lti/models/tool_profile.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

#base_message_urlObject



13
14
15
16
17
18
19
20
# File 'lib/ims/lti/models/tool_profile.rb', line 13

def base_message_url
  if base_url_choice
    choice = base_url_choice.find { |choice| choice.default_message_url != '' }
    choice ? choice.default_message_url : ''
  else
    ''
  end
end

#messagesObject



26
27
28
# File 'lib/ims/lti/models/tool_profile.rb', line 26

def messages
  [*@message]
end

#resource_handlersObject



22
23
24
# File 'lib/ims/lti/models/tool_profile.rb', line 22

def resource_handlers
  [*@resource_handler]
end

#security_profilesObject



30
31
32
# File 'lib/ims/lti/models/tool_profile.rb', line 30

def security_profiles
  [*@security_profile]
end