class LUSI::API::Course::ModuleEnrolment

Represents a module enrolment in the LUSI API

Attributes

course_identity[RW]

@!attribute [rw] module_identity

@return [LUSI::API::Course::EnrolmentIdentity] the enrolment's module identity
module_identity[RW]

@!attribute [rw] module_identity

@return [LUSI::API::Course::EnrolmentIdentity] the enrolment's module identity

Public Class Methods

lusi_ws_method() click to toggle source

@see (LUSI::API::Core::Endpoint#lusi_ws_method)

# File lib/lusi_api/course.rb, line 792
def self.lusi_ws_method
  'BulkGetModuleEnrolments'
end
lusi_ws_xml_root() click to toggle source

@see (LUSI::API::Core::Endpoint#lusi_ws_xml_root)

# File lib/lusi_api/course.rb, line 797
def self.lusi_ws_xml_root
  'BulkModuleEnrolment'
end
new(xml = nil, lookup = nil, module_identity: nil, **kwargs) click to toggle source

@see (LUSI::API::Enrolment::EnrolmentBase#initialize) @param module_identity [LUSI::API::Course::EnrolmentIdentity] the enrolment's module identity

# File lib/lusi_api/course.rb, line 803
def initialize(xml = nil, lookup = nil, module_identity: nil, **kwargs)
  super(xml, lookup, **kwargs)
  @module_identity = EnrolmentIdentity.new(LUSI::API::Core::XML.xml_at(xml, 'xmlns:ModuleIdentity',
                                                                       module_identity), lookup)
end