Class: Viewpoint::SPWS::Types::User
- Inherits:
-
Object
- Object
- Viewpoint::SPWS::Types::User
- 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
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#login_name ⇒ Object
readonly
Returns the value of attribute login_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#sid ⇒ Object
readonly
Returns the value of attribute sid.
-
#site_user ⇒ Object
readonly
Returns the value of attribute site_user.
Instance Method Summary collapse
-
#initialize(ws, xml) ⇒ User
constructor
A new instance of User.
- #is_domain_group? ⇒ Boolean
- #is_site_admin? ⇒ Boolean
Constructor Details
#initialize(ws, xml) ⇒ User
Returns a new instance of User.
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
#email ⇒ Object (readonly)
Returns the value of attribute email.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def email @email end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def flags @flags end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def id @id end |
#login_name ⇒ Object (readonly)
Returns the value of attribute login_name.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def login_name @login_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def name @name end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def notes @notes end |
#sid ⇒ Object (readonly)
Returns the value of attribute sid.
23 24 25 |
# File 'lib/viewpoint/spws/types/user.rb', line 23 def sid @sid end |
#site_user ⇒ Object (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
36 37 38 |
# File 'lib/viewpoint/spws/types/user.rb', line 36 def is_domain_group? @is_domain_group end |
#is_site_admin? ⇒ Boolean
32 33 34 |
# File 'lib/viewpoint/spws/types/user.rb', line 32 def is_site_admin? @is_site_admin end |