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 Method Summary collapse

Methods inherited from NamedEntity

#name

Methods inherited from DynamicEntity

#id

Methods inherited from Entity

add_attribute, inherited, #initialize_with_xml, new_with_xml

Instance Method Details

#archivedBoolean

Returns:

  • (Boolean)


15
# File 'lib/jiraSOAP/entities/version.rb', line 15

add_attribute :archived, 'archived', :to_boolean

#release_dateTime

Returns:

  • (Time)


18
# File 'lib/jiraSOAP/entities/version.rb', line 18

add_attribute :release_date, 'releaseDate', :to_iso_date

#releasedBoolean

Returns:

  • (Boolean)


12
# File 'lib/jiraSOAP/entities/version.rb', line 12

add_attribute :released, 'released', :to_boolean

#sequenceNumber

Returns:

  • (Number)


9
# File 'lib/jiraSOAP/entities/version.rb', line 9

add_attribute :sequence, 'sequence', :to_i

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

Parameters:

Returns:



22
23
24
25
26
27
28
# File 'lib/jiraSOAP/entities/version.rb', line 22

def soapify_for msg
  msg.add 'name', @name
  msg.add 'archived', @archived if @archived
  msg.add 'sequence', @sequence if @sequence
  msg.add 'releaseDate', @release_date.xmlschema if @release_date
  msg.add 'released', @released if @released
end