Class: JIRA::IssueType

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



61
62
63
# File 'lib/jiraSOAP/remoteEntities.rb', line 61

def description
  @description
end

#iconObject

Returns the value of attribute icon.



61
62
63
# File 'lib/jiraSOAP/remoteEntities.rb', line 61

def icon
  @icon
end

#idObject

Returns the value of attribute id.



61
62
63
# File 'lib/jiraSOAP/remoteEntities.rb', line 61

def id
  @id
end

#nameObject

Returns the value of attribute name.



61
62
63
# File 'lib/jiraSOAP/remoteEntities.rb', line 61

def name
  @name
end

#subtask=(value) ⇒ Object (writeonly)

Sets the attribute subtask

Parameters:

  • value

    the value to set the attribute subtask to.



62
63
64
# File 'lib/jiraSOAP/remoteEntities.rb', line 62

def subtask=(value)
  @subtask = value
end

Class Method Details

.issue_type_with_xml_fragment(frag) ⇒ Object



64
65
66
67
68
69
70
71
72
73
# File 'lib/jiraSOAP/remoteEntities.rb', line 64

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.icon        = frag.xpath('icon').to_s #FIXME: NSURL
  issue_type.subtask     = frag.xpath('subtask').to_s == 'true'
  issue_type.description = frag.xpath('description').to_s
  issue_type
end

Instance Method Details

#subtask?Boolean

Returns:

  • (Boolean)


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

def subtask?; @subtask; end