Module: Postmates::Client::Delivery

Included in:
Postmates::Client
Defined in:
lib/Postmates/client/delivery.rb

Instance Method Summary collapse

Instance Method Details

#delivery_cancel(delivery_id) ⇒ Object



17
18
19
# File 'lib/Postmates/client/delivery.rb', line 17

def delivery_cancel(delivery_id)
  post("deliveries/#{delivery_id}/cancel")
end

#delivery_create(options) ⇒ Object



4
5
6
# File 'lib/Postmates/client/delivery.rb', line 4

def delivery_create(options)
  post('deliveries', options)
end

#delivery_listObject

@TODO: WIP, retrieving delivery list currently fails



13
14
15
# File 'lib/Postmates/client/delivery.rb', line 13

def delivery_list
  get('deliveries')
end

#delivery_poll(delivery_id) ⇒ Object



8
9
10
# File 'lib/Postmates/client/delivery.rb', line 8

def delivery_poll(delivery_id)
  get("deliveries/#{delivery_id}")
end

#delivery_return(delivery_id) ⇒ Object



21
22
23
# File 'lib/Postmates/client/delivery.rb', line 21

def delivery_return(delivery_id)
  post("#{delivery_id}/return")
end