Class: JIRA::Resolution
- Inherits:
-
Object
- Object
- JIRA::Resolution
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
Represents a resolution. Straightforward.
Instance Attribute Summary collapse
- #description ⇒ String
-
#icon ⇒ URL
A NSURL on MacRuby and a URI::HTTP object in CRuby.
- #id ⇒ String
- #name ⇒ String
Class Method Summary collapse
-
.resolution_with_xml_fragment(frag) ⇒ JIRA::Resolution?
Factory method that takes a fragment of a SOAP response.
Instance Attribute Details
#description ⇒ String
42 43 44 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 42 def description @description end |
#icon ⇒ URL
Returns 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 |
#id ⇒ String
36 37 38 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 36 def id @id end |
#name ⇒ 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.
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 |