Sha256: f093e432e7dc1d76d544514e2dca174cfef356da1424ee067a3fa0ccb6a86316
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
module Unforlogistics module Core module Couriers def get_couriers(filters={}) get_request('/couriers', filters) end def get_courier(id) get_request("/couriers/#{id}") end def create_courier(attrs={}) post_request('/couriers', attrs) end def update_courier(id, attrs={}) put_request("/couriers/#{id}", attrs) end def enable_courier(id) put_request("/couriers/#{id}/enabled") end def disable_courier(id) put_request("/couriers/#{id}/disabled") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unforlogistics-api-0.8 | lib/unforlogistics/core/couriers.rb |
unforlogistics-api-0.7 | lib/unforlogistics/core/couriers.rb |