Repository URL to install this package:
|
Version:
0.0.1 ▾
|
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