Class: LUSI::API::Enrolment::EnrolmentRole
- Inherits:
-
Core::Code
- Object
- Core::BasicCode
- Core::Code
- LUSI::API::Enrolment::EnrolmentRole
- Defined in:
- lib/lusi_api/enrolment.rb
Overview
Represents an enrolment role in the LUSI API
Instance Attribute Summary collapse
-
#vle_role_description ⇒ String?
The VLE role description a member has against this enrolment.
Attributes inherited from Core::BasicCode
Instance Method Summary collapse
-
#initialize(xml = nil, lookup = nil, vle_role_description: nil, **kwargs) ⇒ void
constructor
Initialises a new EnrolmentRole instance.
Methods inherited from Core::Code
Methods inherited from Core::BasicCode
Constructor Details
#initialize(xml = nil, lookup = nil, vle_role_description: nil, **kwargs) ⇒ void
Initialises a new EnrolmentRole instance
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_description ⇒ String?
Returns 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 |