Class: JIRA::Comment

Inherits:
DynamicEntity show all
Defined in:
lib/jiraSOAP/entities/comment.rb

Overview

Contains a comment's body and metadata.

Instance Method Summary collapse

Methods inherited from DynamicEntity

#id

Methods inherited from Entity

add_attribute, inherited, #initialize_with_xml, new_with_xml

Instance Method Details

#add_to(issue_key) ⇒ Object

Add a created comment to an issue

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/jiraSOAP/entities/comment.rb', line 34

def add_to issue_key
  raise NotImplementedError, 'Please implement me. :('
end

#authorString

A username

Returns:

  • (String)


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

add_attribute :author, 'author', :content

#bodyString

Returns:

  • (String)


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

add_attribute :body, 'body', :content

#create_timeTime

Returns:

  • (Time)


27
# File 'lib/jiraSOAP/entities/comment.rb', line 27

add_attribute :create_time, 'created', :to_iso_date

#group_levelString

Returns:

  • (String)


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

add_attribute :group_level, 'groupLevel', :content

#last_updated_timeTime

Returns:

  • (Time)


30
# File 'lib/jiraSOAP/entities/comment.rb', line 30

add_attribute :last_updated_time, 'updated', :to_iso_date

#role_levelString

Returns:

  • (String)


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

add_attribute :role_level, 'roleLevel', :content

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

TODO:

make this method shorter

Parameters:

Returns:



43
44
45
46
47
48
49
50
# File 'lib/jiraSOAP/entities/comment.rb', line 43

def soapify_for msg
  msg.add 'id', @id
  msg.add 'author', @author
  msg.add 'body', @body
  msg.add 'groupLevel', @group_level if @group_level
  msg.add 'roleLevel', @role_level if @role_level
  msg.add 'updateAuthor', @update_author if @update_author
end

#update_authorString

A username

Returns:

  • (String)


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

add_attribute :update_author, 'updateAuthor', :content