class LUSI::API::VLE::VLESpaceCourse
Attributes
department[RW]
@!attribute [rw] department
@return [LUSI::API::VLE::Department] the department
display_long_title[RW]
@!attribute [rw] display_long_title
@return [String, nil] the long course title
display_short_title[RW]
@!attribute [rw] display_short_title
@return [String, nil] the short course title
identity[RW]
@!attribute [rw] identity
@return [LUSI::API::Course::EnrolmentIdentity] the VLE space course identity
talis_code[RW]
@!attribute [rw] talis_code
@return [String, nil] the Talis Aspire course code
Public Class Methods
new(xml = nil, lookup = nil, department: nil, display_long_title: nil, display_short_title: nil, identity: nil, talis_code: nil)
click to toggle source
Initialises a new VLESpaceCourse
instance @return [void]
# File lib/lusi_api/vle.rb, line 67 def initialize(xml = nil, lookup = nil, department: nil, display_long_title: nil, display_short_title: nil, identity: nil, talis_code: nil) @department = LUSI::API::VLE::Department.new(LUSI::API::Core::XML.xml_at(xml, 'xmlns:Department', department), lookup) @display_long_title = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:DisplayLongTitle', display_long_title) @display_short_title = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:DisplayShortTitle', display_short_title) @identity = LUSI::API::Course::EnrolmentIdentity.new(LUSI::API::Core::XML.xml_at(xml, 'xmlns:Identity', identity), lookup) @talis_code = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:TalisCode', talis_code) end
Public Instance Methods
to_s()
click to toggle source
Returns a string representation of the VLESpaceCourse
instance @return [String] the string representation of the VLESpaceCourse
instance
# File lib/lusi_api/vle.rb, line 79 def to_s display_long_title || display_short_title end