Class: LiquidPlanner::Resources::Leaf
- Inherits:
-
Item
- Object
- ActiveResource::Base
- LiquidPlannerResource
- Item
- LiquidPlanner::Resources::Leaf
- Defined in:
- lib/liquidplanner/resources/leaf.rb
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
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
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( ={} ) .assert_valid_keys( *TRACK_TIME_KEYS ) request_body = .to_json response = post(:track_time, {}, request_body) load( self.class.format.decode( response.body ) ) end |