Sha256: d93ac6e6046d9c9fb77e503dadd583202aa0719343fd82caff7bccc3056227cd

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Delhivery
  class WayBillService < BaseService
    class << self
      def bulk_fetch(count=1)
        connection.get(path('bulk'), { count: count } )
      end

      def fetch
        connection.get(path('fetch'))
      end

      private
      def path(action)
        "/waybill/api/#{action}/json/"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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