Class: JIRA::Worklog
- Inherits:
-
DescribedEntity
- Object
- Entity
- DynamicEntity
- NamedEntity
- DescribedEntity
- JIRA::Worklog
- Defined in:
- lib/jiraSOAP/entities/worklog.rb
Overview
Contains the data and metadata for a remote worklog.
Instance Method Summary collapse
- #comment ⇒ String
- #soapify_for(msg) ⇒ Handsoap::XmlMason::Node
-
#start_date ⇒ DateTime
Needs to be a DateTime.
- #time_spent ⇒ String
Methods inherited from DescribedEntity
Methods inherited from NamedEntity
Methods inherited from DynamicEntity
Methods inherited from Entity
add_attribute, inherited, #initialize_with_xml, new_with_xml
Instance Method Details
#comment ⇒ String
6 |
# File 'lib/jiraSOAP/entities/worklog.rb', line 6 add_attribute :comment, 'comment', :content |
#soapify_for(msg) ⇒ Handsoap::XmlMason::Node
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_date ⇒ DateTime
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.
15 |
# File 'lib/jiraSOAP/entities/worklog.rb', line 15 add_attribute :start_date, 'startDate', :to_date |
#time_spent ⇒ String
18 |
# File 'lib/jiraSOAP/entities/worklog.rb', line 18 add_attribute :time_spent, 'timeSpent', :content |