Class: JIRA::Version

Inherits:
NamedEntity show all
Defined in:
lib/jiraSOAP/entities/version.rb

Overview

TODO:

find out why we don't get a description for this object

Represents a version for a project. The description field is never included when you retrieve versions from the server.

Instance Attribute Summary collapse

Attributes inherited from NamedEntity

#name

Attributes inherited from DynamicEntity

#id

Instance Method Summary collapse

Methods inherited from Entity

add_attributes, #initialize_with_xml, new_with_xml, #to_soap

Instance Attribute Details

#archivedBoolean

Corresponds to archived in the javadoc.

Returns:

  • (Boolean)

#release_dateTime

Corresponds to releaseDate in the javadoc.

Returns:

  • (Time)

#releasedBoolean

Corresponds to released in the javadoc.

Returns:

  • (Boolean)

#sequenceFixnum

Corresponds to sequence in the javadoc.

Returns:

  • (Fixnum)

Instance Method Details

#archived?Boolean

Corresponds to archived in the javadoc.

Returns:

  • (Boolean)

#released?Boolean

Corresponds to released in the javadoc.

Returns:

  • (Boolean)

#soapify_for(msg) ⇒ Handsoap::XmlMason::Node

TODO:

make this method shorter

Parameters:

Returns:



15
16
17
18
19
20
21
# File 'lib/jiraSOAP/entities/version.rb', line 15

def soapify_for(msg)
  msg.add 'name', @name
  msg.add 'archived', @archived unless @archived.nil?
  msg.add 'sequence', @sequence unless @sequence.nil?
  msg.add 'releaseDate', @release_date.xmlschema unless @release_date.nil?
  msg.add 'released', @released unless @released.nil?
end