Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
razorsync / lib / razorsync / client / work_orders.rb
Size: Mime:
module Razorsync
  class Client
    module WorkOrders

      # NOTE: Work Order List requires params to include time window in below format:
      # {
      # "FromModifiedDate":"\/Date(1342705616670)\/",
      # "ToModifiedDate":"\/Date(1347290758)\/"
      # }
      #where time is current milliseconds    Ex. (Time.now.to_f * 1000).floor
      def work_order_list(params = {})
        response = post("WorkOrder/List", params)
      end

      def work_order(id, params = {})
        response = get("WorkOrder/#{id}", params)
      end

    end
  end
end