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:



22
23
24
25
26
# File 'lib/jiraSOAP/entities/worklog.rb', line 22

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

#start_dateDateTime

TODO:

Why does this need to be a DateTime? It should be a Time object so that it can be compatible with Cocoa's NSDate on MacRuby.

Needs to be a DateTime.

Returns:

  • (DateTime)


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

add_attribute :start_date, 'startDate', :to_date

#time_spentString

Returns:

  • (String)


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

add_attribute :time_spent, 'timeSpent', :content