Class: JIRA::Resolution

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

Overview

Represents a resolution. Straightforward.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionString

Returns:

  • (String)


42
43
44
# File 'lib/jiraSOAP/remoteEntities.rb', line 42

def description
  @description
end

#iconURL

Returns A NSURL on MacRuby and a URI::HTTP object in CRuby.

Returns:

  • (URL)

    A NSURL on MacRuby and a URI::HTTP object in CRuby



40
41
42
# File 'lib/jiraSOAP/remoteEntities.rb', line 40

def icon
  @icon
end

#idString

Returns:

  • (String)


36
37
38
# File 'lib/jiraSOAP/remoteEntities.rb', line 36

def id
  @id
end

#nameString

Returns:

  • (String)


38
39
40
# File 'lib/jiraSOAP/remoteEntities.rb', line 38

def name
  @name
end

Class Method Details

.resolution_with_xml_fragment(frag) ⇒ JIRA::Resolution?

Factory method that takes a fragment of a SOAP response.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



47
48
49
50
51
52
53
54
55
56
# File 'lib/jiraSOAP/remoteEntities.rb', line 47

def self.resolution_with_xml_fragment(frag)
  return if frag.nil?
  resolution             = Resolution.new
  resolution.id          = frag.xpath('id').to_s
  resolution.name        = frag.xpath('name').to_s
  resolution.description = frag.xpath('description').to_s
  url                    = frag.xpath('icon').to_s
  resolution.icon        = url unless url.nil?
  resolution
end