Sha256: c742bf3148aa6fc0fea7dcafcaced0a6fc99aa323932f0dfd779ac8ccec629fd

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

module Delhivery
  class PickUpService < BaseService
    class << self
      def request_pickup(dateTime, location, count)
        connection.post(path, {
          pickup_time: dateTime.strftime("%H:%M:%S"),
          pickup_date: dateTime.strftime("%Y%m%d"),
          pickup_location: location,
          expected_package_count: count
          }
        )
      end

      private
      def path
        "/fm/request/new/"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
delhivery-0.1.1 lib/delhivery/services/pickup_service.rb