Class: JIRA::Status

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.



77
78
79
# File 'lib/jiraSOAP/remoteEntities.rb', line 77

def description
  @description
end

#iconObject

Returns the value of attribute icon.



77
78
79
# File 'lib/jiraSOAP/remoteEntities.rb', line 77

def icon
  @icon
end

#idObject

Returns the value of attribute id.



77
78
79
# File 'lib/jiraSOAP/remoteEntities.rb', line 77

def id
  @id
end

#nameObject

Returns the value of attribute name.



77
78
79
# File 'lib/jiraSOAP/remoteEntities.rb', line 77

def name
  @name
end

Class Method Details

.status_with_xml_fragment(frag) ⇒ Object



78
79
80
81
82
83
84
85
86
# File 'lib/jiraSOAP/remoteEntities.rb', line 78

def self.status_with_xml_fragment(frag)
  return if frag.nil?
  status             = Status.new
  status.id          = frag.xpath('id').to_s
  status.name        = frag.xpath('name').to_s
  status.icon        = frag.xpath('icon').to_s #FIXME: NSURL
  status.description = frag.xpath('description').to_s
  status
end