Class: JIRA::Component

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



122
123
124
# File 'lib/jiraSOAP/remoteEntities.rb', line 122

def id
  @id
end

#nameObject

Returns the value of attribute name.



122
123
124
# File 'lib/jiraSOAP/remoteEntities.rb', line 122

def name
  @name
end

Class Method Details

.component_with_xml_fragment(frag) ⇒ Object



123
124
125
126
127
128
129
# File 'lib/jiraSOAP/remoteEntities.rb', line 123

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