Class: JIRA::CustomField
- Inherits:
-
Object
- Object
- JIRA::CustomField
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#key ⇒ Object
Returns the value of attribute key.
-
#values ⇒ Object
Returns the value of attribute values.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
42 43 44 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 42 def id @id end |
#key ⇒ Object
Returns the value of attribute key.
42 43 44 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 42 def key @key end |
#values ⇒ Object
Returns the value of attribute values.
42 43 44 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 42 def values @values end |
Class Method Details
.custom_field_with_xml_fragment(frag) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 43 def self.custom_field_with_xml_fragment(frag) return if frag.nil? custom_field = CustomField.new custom_field.id = frag.xpath('customfieldId').to_s custom_field.key = frag.xpath('key').to_s custom_field.values = frag.xpath('values/*').map { |value| value.to_s } custom_field end |
Instance Method Details
#soapify_for(msg, label = 'customFieldValues') ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 51 def soapify_for(msg, label = 'customFieldValues') msg.add label do |submsg| submsg.add 'customfieldId', @id submsg.add 'key', @key #TODO: see if this is always nil submsg.add_simple_array 'values', @values end end |