Class: JIRA::Worklog

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

Overview

Contains the data and metadata for a remote worklog.

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

#commentString

Returns:

  • (String)


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

add_attribute :comment, 'comment', :content

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

Parameters:

Returns:



16
17
18
19
20
# File 'lib/jiraSOAP/entities/worklog.rb', line 16

def soapify_for msg
  msg.add 'comment', @comment
  msg.add 'startDate', @start_date
  msg.add 'timeSpent', @time_spent
end

#start_dateTime

Returns:

  • (Time)


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

add_attribute :start_date, 'startDate', :to_iso_date

#time_spentString

Returns:

  • (String)


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

add_attribute :time_spent, 'timeSpent', :content