class Delhivery::WarehouseService

Public Class Methods

check_status(warehouse_name) click to toggle source
# File lib/delhivery/services/warehouse_service.rb, line 8
def check_status(warehouse_name)
  connection.post(status_path, name: warehouse_name)
end
create(params) click to toggle source
# File lib/delhivery/services/warehouse_service.rb, line 4
def create(params)
  connection.post(create_path, params)
end
edit(params) click to toggle source
# File lib/delhivery/services/warehouse_service.rb, line 12
def edit(params)
  connection.post(edit_path, params)
end

Private Class Methods

create_path() click to toggle source
# File lib/delhivery/services/warehouse_service.rb, line 17
def create_path
  "/api/backend/clientwarehouse/create/"
end
edit_path() click to toggle source
# File lib/delhivery/services/warehouse_service.rb, line 25
def edit_path
  "/api/backend/clientwarehouse/edit/"
end
status_path() click to toggle source
# File lib/delhivery/services/warehouse_service.rb, line 21
def status_path
  "/api/backend/clientwarehouse/status/"
end