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
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 ⇒ String
586 587 588 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 586 def email @email end |
#full_name ⇒ String
584 585 586 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 584 def full_name @full_name end |
#name ⇒ String
582 583 584 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 582 def name @name end |
Class Method Details
.user_with_xml_fragment(frag) ⇒ JIRA::User?
Factory method that takes a fragment of a SOAP response.
591 592 593 594 595 596 597 598 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 591 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 |