Class: JIRA::User
- Inherits:
-
Object
- Object
- JIRA::User
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
Contains the basic information about a user. Straightforward.
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
-
.user_with_xml_fragment(frag) ⇒ JIRA::User?
Factory method that takes a fragment of a SOAP response.
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
423 424 425 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 423 def email @email end |
#full_name ⇒ Object
Returns the value of attribute full_name.
423 424 425 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 423 def full_name @full_name end |
#name ⇒ Object
Returns the value of attribute name.
423 424 425 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 423 def name @name end |
Class Method Details
.user_with_xml_fragment(frag) ⇒ JIRA::User?
Factory method that takes a fragment of a SOAP response.
428 429 430 431 432 433 434 435 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 428 def self.user_with_xml_fragment(frag) return if frag.nil? user = User.new user.name = frag.xpath('name').to_s user.full_name = frag.xpath('fullname').to_s user.email = frag.xpath('email').to_s user end |