Class: PacklinkLite::Shipment

Inherits:
Object
  • Object
show all
Defined in:
lib/packlink_lite/shipment.rb

Constant Summary collapse

PATH =
'shipments'

Class Method Summary collapse

Class Method Details

.all(params = {}, options = {}) ⇒ Object



5
6
7
# File 'lib/packlink_lite/shipment.rb', line 5

def self.all(params = {}, options = {})
  PacklinkLite.client.get(PATH, params, options)
end

.find(reference, options = {}) ⇒ Object



9
10
11
# File 'lib/packlink_lite/shipment.rb', line 9

def self.find(reference, options = {})
  PacklinkLite.client.get(PATH + '/' + reference, {}, options)
end