Class: LiquidPlanner::Resources::Leaf

Inherits:
Item show all
Includes:
Order, Priority
Defined in:
lib/liquidplanner/resources/leaf.rb

Direct Known Subclasses

Event, Milestone, Task

Constant Summary collapse

TRACK_TIME_KEYS =
[ :work, :activity_id, :member_id, :low, :high, :is_done, :done_on, :work_performed_on, :comment ].freeze

Instance Method Summary collapse

Methods included from Order

#organize_after, #organize_before

Methods included from LiquidPlanner::RelativeResource

#move_relative_to

Methods included from Priority

#prioritize_after, #prioritize_before

Methods inherited from Item

#attach_document, #comments, #documents, #estimates, #folder, #item_collection, #links, #note, #tasklist, #workspace_id

Methods inherited from LiquidPlannerResource

#load

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class LiquidPlanner::LiquidPlannerResource

Instance Method Details

#track_time(options = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/liquidplanner/resources/leaf.rb', line 12

def track_time( options={} )
  options.assert_valid_keys( *TRACK_TIME_KEYS )
  request_body = options.to_json
  response = post(:track_time, {}, request_body)
  load( self.class.format.decode( response.body ) )
end