Class: JIRA::Comment
- Inherits:
-
DynamicEntity
- Object
- Entity
- DynamicEntity
- JIRA::Comment
- Defined in:
- lib/jiraSOAP/entities/comment.rb
Overview
Contains a comment's body and metadata.
Instance Method Summary collapse
-
#add_to(issue_key) ⇒ Object
Add a created comment to an issue.
-
#author ⇒ String
A username.
- #body ⇒ String
- #create_time ⇒ Time
- #group_level ⇒ String
- #last_updated_time ⇒ Time
- #role_level ⇒ String
- #soapify_for(msg) ⇒ Handsoap::XmlMason::Node
-
#update_author ⇒ String
A username.
Methods inherited from DynamicEntity
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
34 35 36 |
# File 'lib/jiraSOAP/entities/comment.rb', line 34 def add_to issue_key raise NotImplementedError, 'Please implement me. :(' end |
#author ⇒ String
A username
9 |
# File 'lib/jiraSOAP/entities/comment.rb', line 9 add_attribute :author, 'author', :content |
#body ⇒ String
12 |
# File 'lib/jiraSOAP/entities/comment.rb', line 12 add_attribute :body, 'body', :content |
#create_time ⇒ Time
27 |
# File 'lib/jiraSOAP/entities/comment.rb', line 27 add_attribute :create_time, 'created', :to_iso_date |
#group_level ⇒ String
15 |
# File 'lib/jiraSOAP/entities/comment.rb', line 15 add_attribute :group_level, 'groupLevel', :content |
#last_updated_time ⇒ Time
30 |
# File 'lib/jiraSOAP/entities/comment.rb', line 30 add_attribute :last_updated_time, 'updated', :to_iso_date |
#role_level ⇒ 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
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_author ⇒ String
A username
24 |
# File 'lib/jiraSOAP/entities/comment.rb', line 24 add_attribute :update_author, 'updateAuthor', :content |