Class: JIRA::Field

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

Overview

Represents a field mapping.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

Returns:

  • (String)


62
63
64
# File 'lib/jiraSOAP/remoteEntities.rb', line 62

def id
  @id
end

#nameString

Returns:

  • (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.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



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