Module: LiquidPlanner
- Defined in:
- lib/liquidplanner/resources/item.rb,
lib/liquidplanner.rb,
lib/liquidplanner/base.rb,
lib/liquidplanner/debug.rb,
lib/liquidplanner/resources/leaf.rb,
lib/liquidplanner/resources/link.rb,
lib/liquidplanner/resources/note.rb,
lib/liquidplanner/resources/task.rb,
lib/liquidplanner/resources/event.rb,
lib/liquidplanner/resources/order.rb,
lib/liquidplanner/resources/client.rb,
lib/liquidplanner/resources/folder.rb,
lib/liquidplanner/resources/member.rb,
lib/liquidplanner/resources/account.rb,
lib/liquidplanner/resources/comment.rb,
lib/liquidplanner/resources/luggage.rb,
lib/liquidplanner/resources/project.rb,
lib/liquidplanner/resources/activity.rb,
lib/liquidplanner/resources/document.rb,
lib/liquidplanner/resources/estimate.rb,
lib/liquidplanner/resources/priority.rb,
lib/liquidplanner/resources/snapshot.rb,
lib/liquidplanner/resources/tasklist.rb,
lib/liquidplanner/resources/container.rb,
lib/liquidplanner/resources/milestone.rb,
lib/liquidplanner/resources/workspace.rb,
lib/liquidplanner/liquidplanner_resource.rb,
lib/liquidplanner/resources/relative_resource.rb
Overview
leaves
Defined Under Namespace
Modules: Order, Priority, RelativeResource, Resources Classes: Base, LiquidPlannerResource
Constant Summary collapse
- VERSION =
"0.0.2"
- API_BASE_URL =
"https://app.liquidplanner.com/api"
Class Method Summary collapse
-
.watch_requests!(&block) ⇒ Object
Print out all the outgoing requests from the LiquidPlanner API.
Class Method Details
.watch_requests!(&block) ⇒ Object
Print out all the outgoing requests from the LiquidPlanner API
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/liquidplanner/debug.rb', line 3 def self.watch_requests!(&block) ActiveSupport::Notifications.subscribe('active_resource.request') do |name, time, stamp, id, payload| method = payload[:method] request = payload[:request_uri] if block block.call(method, request, payload) else puts "[#{method}] #{request}" end end end |