Class: JIRA::FieldValue
- Inherits:
-
Object
- Object
- JIRA::FieldValue
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
A structure that is a bit of a hack. It is essentially just a key-value pair that is used mainly by RemoteAPI#update_issue.
Instance Attribute Summary collapse
- #id ⇒ String
-
#values ⇒ [String,Time,URL,JIRA::*,nil]
Hard to say what the type should be.
Class Method Summary collapse
-
.field_value_with_nil_values(id) ⇒ JIRA::FieldValue
Factory method that gives you a nil value for the given id.
Instance Method Summary collapse
-
#soapify_for(message, label = 'fieldValue') ⇒ Handsoap::XmlMason::Element
Generate the SOAP message fragment for a field value.
Instance Attribute Details
#id ⇒ String
605 606 607 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 605 def id @id end |
Class Method Details
.field_value_with_nil_values(id) ⇒ JIRA::FieldValue
Factory method that gives you a nil value for the given id.
612 613 614 615 616 617 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 612 def self.field_value_with_nil_values(id) fv = FieldValue.new fv.id = id fv.values = [nil] fv end |
Instance Method Details
#soapify_for(message, label = 'fieldValue') ⇒ Handsoap::XmlMason::Element
Generate the SOAP message fragment for a field value.
623 624 625 626 627 628 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 623 def soapify_for(, label = 'fieldValue') .add label do || .add 'id', @id .add_simple_array 'values', @values end end |