class LUSI::API::VLE::Department

Attributes

identity[RW]

@!attribute [rw] identity

@return [String] the department identity
org_unit[RW]

@!attribute [rw] org_unit

@return [LUSI::API::Organisation::Unit] the organisation unit
  representing the department
title[RW]

@!attribute [rw] title

@return [String] the department name

Public Class Methods

new(xml = nil, lookup = nil, identity: nil, org_unit: nil, title: nil) click to toggle source

Initialises a new Department instance @param identity [String] the department's identity @param org_unit [LUSI::API::Organisation::Unit] the organisation unit

for the department

@param title [String] the department's title @return [void]

# File lib/lusi_api/vle.rb, line 29
def initialize(xml = nil, lookup = nil, identity: nil, org_unit: nil,
               title: nil)
  @identity = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:Identity', identity)
  @org_unit = LUSI::API::Core::XML.lookup(xml, lookup, :department, 'xmlns:Identity', org_unit)
  @title = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:Title', title)
end

Public Instance Methods

to_s() click to toggle source

Returns a string representation of the Department instance @return [String] the string representation of the Department instance

# File lib/lusi_api/vle.rb, line 38
def to_s
  title
end