Class: JIRA::Version
- Inherits:
-
Object
- Object
- JIRA::Version
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Instance Attribute Summary collapse
-
#archived ⇒ Object
Returns the value of attribute archived.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#release_date ⇒ Object
Returns the value of attribute release_date.
-
#released ⇒ Object
Returns the value of attribute released.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#archived ⇒ Object
Returns the value of attribute archived.
90 91 92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 90 def archived @archived end |
#id ⇒ Object
Returns the value of attribute id.
90 91 92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 90 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
90 91 92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 90 def name @name end |
#release_date ⇒ Object
Returns the value of attribute release_date.
90 91 92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 90 def release_date @release_date end |
#released ⇒ Object
Returns the value of attribute released.
90 91 92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 90 def released @released end |
#sequence ⇒ Object
Returns the value of attribute sequence.
90 91 92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 90 def sequence @sequence end |
Class Method Details
.version_with_xml_fragment(frag) ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 94 def self.version_with_xml_fragment(frag) return if frag.nil? #TODO: find out why we don't get a description for this type version = Version.new version.id = frag.xpath('id').to_s version.name = frag.xpath('name').to_s version.sequence = frag.xpath('sequence').to_s.to_i version.released = frag.xpath('released').to_s == 'true' version.archived = frag.xpath('archived').to_s == 'true' version.release_date = frag.xpath('releaseDate').to_s #FIXME: NSDate version end |
Instance Method Details
#archived? ⇒ Boolean
93 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 93 def archived?; @archived; end |
#released? ⇒ Boolean
92 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 92 def released?; @released; end |