Class: JIRA::Component

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

Overview

Represents a component description for a project. Straightforward.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



225
226
227
# File 'lib/jiraSOAP/remoteEntities.rb', line 225

def id
  @id
end

#nameObject

Returns the value of attribute name.



225
226
227
# File 'lib/jiraSOAP/remoteEntities.rb', line 225

def name
  @name
end

Class Method Details

.component_with_xml_fragment(frag) ⇒ JIRA::Component?

Factory method that takes a fragment of a SOAP response.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



230
231
232
233
234
235
236
# File 'lib/jiraSOAP/remoteEntities.rb', line 230

def self.component_with_xml_fragment(frag)
  return if frag.nil?
  component      = Component.new
  component.id   = frag.xpath('id').to_s
  component.name = frag.xpath('name').to_s
  component
end