Class: JIRA::Priority

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color.



4
5
6
# File 'lib/jiraSOAP/remoteEntities.rb', line 4

def color
  @color
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/jiraSOAP/remoteEntities.rb', line 4

def description
  @description
end

#iconObject

Returns the value of attribute icon.



4
5
6
# File 'lib/jiraSOAP/remoteEntities.rb', line 4

def icon
  @icon
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/jiraSOAP/remoteEntities.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/jiraSOAP/remoteEntities.rb', line 4

def name
  @name
end

Class Method Details

.priority_with_xml_fragment(frag) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/jiraSOAP/remoteEntities.rb', line 5

def self.priority_with_xml_fragment(frag)
  return if frag.nil?
  priority             = Priority.new
  priority.id          = frag.xpath('id').to_s
  priority.name        = frag.xpath('name').to_s
  priority.color       = frag.xpath('color').to_s #PONDER: hex
  priority.icon        = frag.xpath('icon').to_s #FIXME: NSURL
  priority.description = frag.xpath('description').to_s
  priority
end