Class: LUSI::API::Enrolment::EnrolmentRole

Inherits:
Core::Code show all
Defined in:
lib/lusi_api/enrolment.rb

Overview

Represents an enrolment role in the LUSI API

Instance Attribute Summary collapse

Attributes inherited from Core::BasicCode

#description, #identity

Instance Method Summary collapse

Methods inherited from Core::Code

get_instance

Methods inherited from Core::BasicCode

get_instance, #to_s

Constructor Details

#initialize(xml = nil, lookup = nil, vle_role_description: nil, **kwargs) ⇒ void

Initialises a new EnrolmentRole instance

Parameters:

  • vle_role_description (String, nil) (defaults to: nil)

    the default VLE role description



21
22
23
24
25
# File 'lib/lusi_api/enrolment.rb', line 21

def initialize(xml = nil, lookup = nil, vle_role_description: nil, **kwargs)
  super(xml, lookup, **kwargs)
  @vle_role_description = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:VLERoleDescription',
                                                              vle_role_description)
end

Instance Attribute Details

#vle_role_descriptionString?

Returns the VLE role description a member has against this enrolment.

Returns:

  • (String, nil)

    the VLE role description a member has against this enrolment



15
16
17
# File 'lib/lusi_api/enrolment.rb', line 15

def vle_role_description
  @vle_role_description
end