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
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
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 ⇒ Object
Returns the value of attribute id.
225 226 227 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 225 def id @id end |
#name ⇒ Object
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.
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 |