Class: JIRA::Version
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
#id
Methods inherited from Entity
add_attribute, inherited, #initialize_with_xml, new_with_xml
Instance Method Details
#archived ⇒ Boolean
15
|
# File 'lib/jiraSOAP/entities/version.rb', line 15
add_attribute :archived, 'archived', :to_boolean
|
#release_date ⇒ Time
18
|
# File 'lib/jiraSOAP/entities/version.rb', line 18
add_attribute :release_date, 'releaseDate', :to_iso_date
|
#released ⇒ Boolean
12
|
# File 'lib/jiraSOAP/entities/version.rb', line 12
add_attribute :released, 'released', :to_boolean
|
#sequence ⇒ Number
9
|
# File 'lib/jiraSOAP/entities/version.rb', line 9
add_attribute :sequence, 'sequence', :to_i
|
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
|