Class: JIRA::Resolution

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



18
19
20
# File 'lib/jiraSOAP/remoteEntities.rb', line 18

def description
  @description
end

#iconObject

Returns the value of attribute icon.



18
19
20
# File 'lib/jiraSOAP/remoteEntities.rb', line 18

def icon
  @icon
end

#idObject

Returns the value of attribute id.



18
19
20
# File 'lib/jiraSOAP/remoteEntities.rb', line 18

def id
  @id
end

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/jiraSOAP/remoteEntities.rb', line 18

def name
  @name
end

Class Method Details

.resolution_with_xml_fragment(frag) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/jiraSOAP/remoteEntities.rb', line 19

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.icon        = frag.xpath('icon').to_s #FIXME: NSURL
  resolution.description = frag.xpath('description').to_s
  resolution
end