class LUSI::API::Person::UserAccount
Attributes
account_name[RW]
@!attribute [rw] account_name
@return [String, nil] the account username
identity[RW]
@!attribute [rw] identity
@return [String, nil] the student identity associated with the username
Public Class Methods
new(xml = nil, lookup = nil, account_name: nil, identity: nil)
click to toggle source
Initialises a new UserAccount
instance @param xml [Nokogiri::XML::Document, Nokogiri::XML::Node] the parsed root of the user account @param lookup [LUSI::API::Core::Lookup::LookupService, nil] the lookup service for object resolution @param account_name
[String, nil] the default account name @param identity [String, nil] the default student identity @return [void]
# File lib/lusi_api/person/student.rb, line 413 def initialize(xml = nil, lookup = nil, account_name: nil, identity: nil) @account_name = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:AccountName', account_name) @identity = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:Identity', identity) end
Public Instance Methods
to_s()
click to toggle source
Returns a string representation of the UserAccount
instance @return [String] the string representation of the UserAccount
instance
# File lib/lusi_api/person/student.rb, line 420 def to_s @account_name end