Sha256: 96c4ff9daa79c5e62d5740f247d018c047b4856a72e4f0e0c29af7149855bd91

Contents?: true

Size: 459 Bytes

Versions: 10

Compression:

Stored size: 459 Bytes

Contents

# encoding: utf-8

module DpdApi
  class Calculator < Base
    class << self
      def service_cost(params = {})
        method = :get_service_cost2
        response(method, params)
      end

      def service_cost_by_parcels(params = {})
        method = :get_service_cost_by_parcels2
        response(method, params)
      end

      protected

      def url
        "#{DpdApi.configuration.base_url}/services/calculator2?wsdl"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dpd_api-0.1.10 lib/dpd_api/calculator.rb
dpd_api-0.1.9 lib/dpd_api/calculator.rb
dpd_api-0.1.8 lib/dpd_api/calculator.rb
dpd_api-0.1.7 lib/dpd_api/calculator.rb
dpd_api-0.1.6 lib/dpd_api/calculator.rb
dpd_api-0.1.5 lib/dpd_api/calculator.rb
dpd_api-0.1.3 lib/dpd_api/calculator.rb
dpd_api-0.1.2 lib/dpd_api/calculator.rb
dpd_api-0.1.1 lib/dpd_api/calculator.rb
dpd_api-0.1.0 lib/dpd_api/calculator.rb