Class: JIRA::IssueType
- Inherits:
-
Object
- Object
- JIRA::IssueType
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
Represents and issue type. Straight forward.
Instance Attribute Summary collapse
Class Method Summary collapse
-
.issue_type_with_xml_fragment(frag) ⇒ JIRA::IssueType?
Factory method that takes a fragment of a SOAP response.
Instance Method Summary collapse
-
#subtask? ⇒ boolean
True if the issue type is a subtask, otherwise false.
Instance Attribute Details
#description ⇒ String
122 123 124 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 122 def description @description end |
#id ⇒ String
116 117 118 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 116 def id @id end |
#name ⇒ String
118 119 120 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 118 def name @name end |
#subtask ⇒ boolean
124 125 126 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 124 def subtask @subtask end |
Class Method Details
.issue_type_with_xml_fragment(frag) ⇒ JIRA::IssueType?
Factory method that takes a fragment of a SOAP response.
132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 132 def self.issue_type_with_xml_fragment(frag) return if frag.nil? issue_type = IssueType.new issue_type.id = frag.xpath('id').to_s issue_type.name = frag.xpath('name').to_s issue_type.subtask = frag.xpath('subTask').to_s == 'true' issue_type.description = frag.xpath('description').to_s url = frag.xpath('icon').to_s issue_type.icon = URL.new url unless url.nil? issue_type end |
Instance Method Details
#subtask? ⇒ boolean
Returns true if the issue type is a subtask, otherwise false.
127 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 127 def subtask?; @subtask; end |