Class: JIRA::Comment

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

Overview

Contains a comments body and its metadata.

Instance Attribute Summary collapse

Attributes inherited from DynamicEntity

#id

Instance Method Summary collapse

Methods inherited from Entity

add_attributes, #initialize_with_xml, new_with_xml

Instance Attribute Details

#authorString

Returns a username.

Returns:

  • (String)

    a username



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

def author
  @author
end

#bodyString

Returns:

  • (String)


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

def body
  @body
end

#create_timeTime

Returns:

  • (Time)


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

def create_time
  @create_time
end

#group_levelString

Returns:

  • (String)


20
21
22
# File 'lib/jiraSOAP/entities/comment.rb', line 20

def group_level
  @group_level
end

#last_updated_timeTime

Returns:

  • (Time)


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

def last_updated_time
  @last_updated_time
end

#role_levelString

Returns:

  • (String)


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

def role_level
  @role_level
end

#update_authorString

Returns a username.

Returns:

  • (String)

    a username



32
33
34
# File 'lib/jiraSOAP/entities/comment.rb', line 32

def update_author
  @update_author
end

Instance Method Details

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

TODO:

make this method shorter

Parameters:

Returns:



37
38
39
40
41
42
43
44
# File 'lib/jiraSOAP/entities/comment.rb', line 37

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