Class: JIRA::IssueType

Inherits:
Object
  • Object
show all
Defined in:
lib/jiraSOAP/remoteEntities.rb

Overview

Represents and issue type. Straight forward.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionString

Returns:

  • (String)


122
123
124
# File 'lib/jiraSOAP/remoteEntities.rb', line 122

def description
  @description
end

#iconURL

Returns:



120
121
122
# File 'lib/jiraSOAP/remoteEntities.rb', line 120

def icon
  @icon
end

#idString

Returns:

  • (String)


116
117
118
# File 'lib/jiraSOAP/remoteEntities.rb', line 116

def id
  @id
end

#nameString

Returns:

  • (String)


118
119
120
# File 'lib/jiraSOAP/remoteEntities.rb', line 118

def name
  @name
end

#subtaskboolean

Returns:

  • (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.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



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.

Returns:

  • (boolean)

    true if the issue type is a subtask, otherwise false



127
# File 'lib/jiraSOAP/remoteEntities.rb', line 127

def subtask?; @subtask; end