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

#idString

Returns:

  • (String)


309
310
311
# File 'lib/jiraSOAP/remoteEntities.rb', line 309

def id
  @id
end

#nameString

Returns:

  • (String)


311
312
313
# File 'lib/jiraSOAP/remoteEntities.rb', line 311

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:



316
317
318
319
320
321
322
# File 'lib/jiraSOAP/remoteEntities.rb', line 316

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