Class: JIRA::Project

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def description
  @description
end

#idObject

Returns the value of attribute id.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def id
  @id
end

#issue_security_schemeObject

Returns the value of attribute issue_security_scheme.



134
135
136
# File 'lib/jiraSOAP/remoteEntities.rb', line 134

def issue_security_scheme
  @issue_security_scheme
end

#keyObject

Returns the value of attribute key.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def key
  @key
end

#leadObject

Returns the value of attribute lead.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def lead
  @lead
end

#nameObject

Returns the value of attribute name.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def name
  @name
end

#notification_schemeObject

Returns the value of attribute notification_scheme.



134
135
136
# File 'lib/jiraSOAP/remoteEntities.rb', line 134

def notification_scheme
  @notification_scheme
end

#permission_schemeObject

Returns the value of attribute permission_scheme.



134
135
136
# File 'lib/jiraSOAP/remoteEntities.rb', line 134

def permission_scheme
  @permission_scheme
end

#project_urlObject

Returns the value of attribute project_url.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def project_url
  @project_url
end

#urlObject

Returns the value of attribute url.



133
134
135
# File 'lib/jiraSOAP/remoteEntities.rb', line 133

def url
  @url
end

Class Method Details

.project_with_xml_fragment(frag) ⇒ Object



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/jiraSOAP/remoteEntities.rb', line 135

def self.project_with_xml_fragment(frag)
  return if frag.nil?
  project = Project.new
  project.id                    = frag.xpath('id').to_s
  project.name                  = frag.xpath('name').to_s
  project.key                   = frag.xpath('key').to_s
  project.url                   = frag.xpath('url').to_s #FIXME: NSURL
  project.project_url           = frag.xpath('projectUrl').to_s #FIXME: NSURL
  project.lead                  = frag.xpath('lead').to_s
  project.description           = frag.xpath('description').to_s
  #TODO: find out why the server always seems to pass nil
  project.issue_security_scheme =
    Scheme.scheme_with_xml_fragment frag.xpath 'issueSecurityScheme'
  project.notification_scheme   =
    Scheme.scheme_with_xml_fragment frag.xpath 'notificationScheme'
  project.permission_scheme     =
    Scheme.scheme_with_xml_fragment frag.xpath 'permissionScheme'
  project
end