Class: JIRA::Field
- Inherits:
-
Object
- Object
- JIRA::Field
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
Represents a field mapping.
Instance Attribute Summary collapse
Class Method Summary collapse
-
.field_with_xml_fragment(frag) ⇒ JIRA::Field?
Factory method that takes a fragment of a SOAP response.
Instance Attribute Details
#id ⇒ String
62 63 64 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 62 def id @id end |
#name ⇒ String
64 65 66 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 64 def name @name end |
Class Method Details
.field_with_xml_fragment(frag) ⇒ JIRA::Field?
Factory method that takes a fragment of a SOAP response.
69 70 71 72 73 74 75 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 69 def self.field_with_xml_fragment(frag) return if frag.nil? field = Field.new field.id = frag.xpath('id').to_s field.name = frag.xpath('name').to_s field end |