Class: JIRA::Project

Inherits:
DescribedEntity show all
Defined in:
lib/jiraSOAP/entities/project.rb

Overview

Contains the data and metadata about a project and its configuration.

Instance Method Summary collapse

Methods inherited from DescribedEntity

#description

Methods inherited from NamedEntity

#name

Methods inherited from DynamicEntity

#id

Methods inherited from Entity

add_attribute, inherited, #initialize_with_xml, new_with_xml

Instance Method Details

#issue_security_schemeString

Returns:

  • (String)


12
# File 'lib/jiraSOAP/entities/project.rb', line 12

add_attribute :issue_security_scheme, 'issueSecurityScheme', [:children_as_object, JIRA::IssueSecurityScheme]

#jira_urlNSURL, URI::HTTP

Returns:



21
# File 'lib/jiraSOAP/entities/project.rb', line 21

add_attribute :jira_url, 'url', :to_url

#keyString

Returns:

  • (String)


6
# File 'lib/jiraSOAP/entities/project.rb', line 6

add_attribute :key, 'key', :content

#lead_usernameString

Returns:

  • (String)


9
# File 'lib/jiraSOAP/entities/project.rb', line 9

add_attribute :lead_username, 'lead', :content

#notification_schemeString

Returns:

  • (String)


15
# File 'lib/jiraSOAP/entities/project.rb', line 15

add_attribute :notification_scheme, 'notificationScheme', [:children_as_object, JIRA::NotificationScheme]

#permission_schemeString

Returns:

  • (String)


18
# File 'lib/jiraSOAP/entities/project.rb', line 18

add_attribute :permission_scheme, 'permissionScheme', [:children_as_object, JIRA::PermissionScheme]

#project_urlNSURL, URI::HTTP

Returns:



24
# File 'lib/jiraSOAP/entities/project.rb', line 24

add_attribute :project_url, 'projectUrl', :to_url

#soapify_for(msg) ⇒ Handsoap::XmlMason::Node

TODO:

Encode the schemes

Parameters:

Returns:



32
33
34
35
36
37
38
39
40
# File 'lib/jiraSOAP/entities/project.rb', line 32

def soapify_for msg
  msg.add 'id', @id
  msg.add 'name', @name
  msg.add 'key', @key
  msg.add 'url', @jira_url
  msg.add 'projectUrl', @project_url
  msg.add 'lead', @lead_username
  msg.add 'description', @description
end