Class: JIRA::Component
- Inherits:
-
Object
- Object
- JIRA::Component
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
Represents a component description for a project. Straightforward.
Instance Attribute Summary collapse
Class Method Summary collapse
-
.component_with_xml_fragment(frag) ⇒ JIRA::Component?
Factory method that takes a fragment of a SOAP response.
Instance Attribute Details
#id ⇒ String
309 310 311 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 309 def id @id end |
#name ⇒ 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.
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 |