Class: IMS::LTI::Models::ServiceOwner

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

#create_description(name, key = 'service_owner.description') ⇒ Object



13
14
15
# File 'lib/ims/lti/models/service_owner.rb', line 13

def create_description(name, key = 'service_owner.description')
  @description = LocalizedText.new(name, key)
end

#create_service_owner_name(name, key = 'service_owner.name') ⇒ Object



9
10
11
# File 'lib/ims/lti/models/service_owner.rb', line 9

def create_service_owner_name(name, key = 'service_owner.name')
  @service_owner_name = LocalizedName.new(name, key)
end

#default_descriptionObject



21
22
23
# File 'lib/ims/lti/models/service_owner.rb', line 21

def default_description
  description && description.default_value
end

#default_nameObject



17
18
19
# File 'lib/ims/lti/models/service_owner.rb', line 17

def default_name
  service_owner_name && service_owner_name.default_value
end