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

#emailString

Returns:

  • (String)


586
587
588
# File 'lib/jiraSOAP/remoteEntities.rb', line 586

def email
  @email
end

#full_nameString

Returns:

  • (String)


584
585
586
# File 'lib/jiraSOAP/remoteEntities.rb', line 584

def full_name
  @full_name
end

#nameString

Returns:

  • (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.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



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