Class: JIRA::User

Inherits:
Object
  • Object
show all
Defined in:
lib/jiraSOAP/remoteEntities.rb

Overview

Contains the basic information about a user. Straightforward.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email.



423
424
425
# File 'lib/jiraSOAP/remoteEntities.rb', line 423

def email
  @email
end

#full_nameObject

Returns the value of attribute full_name.



423
424
425
# File 'lib/jiraSOAP/remoteEntities.rb', line 423

def full_name
  @full_name
end

#nameObject

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.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



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