Class: Viewpoint::SPWS::Types::User

Inherits:
Object
  • Object
show all
Includes:
Viewpoint::SPWS::Types
Defined in:
lib/viewpoint/spws/types/user.rb

Overview

This class represents a Sharepoint User Item returned from the UserGroup Web Service

Constant Summary

Constants included from Viewpoint::SPWS::Types

PRIORITY, STATUS

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ws, xml) ⇒ User

Returns a new instance of User.

Parameters:



27
28
29
30
# File 'lib/viewpoint/spws/types/user.rb', line 27

def initialize(ws, xml)
  @ws = ws
  parse_xml_fields(xml)
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def email
  @email
end

#flagsObject (readonly)

Returns the value of attribute flags.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def flags
  @flags
end

#idObject (readonly)

Returns the value of attribute id.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def id
  @id
end

#login_nameObject (readonly)

Returns the value of attribute login_name.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def 
  @login_name
end

#nameObject (readonly)

Returns the value of attribute name.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def name
  @name
end

#notesObject (readonly)

Returns the value of attribute notes.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def notes
  @notes
end

#sidObject (readonly)

Returns the value of attribute sid.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def sid
  @sid
end

#site_userObject (readonly)

Returns the value of attribute site_user.



23
24
25
# File 'lib/viewpoint/spws/types/user.rb', line 23

def site_user
  @site_user
end

Instance Method Details

#is_domain_group?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/viewpoint/spws/types/user.rb', line 36

def is_domain_group?
  @is_domain_group
end

#is_site_admin?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/viewpoint/spws/types/user.rb', line 32

def is_site_admin?
  @is_site_admin
end