Sha256: aacd4675a024c4f3bdfa6161e58f5269d17cf57f2c41c51f3cbc07f81cb9ec36

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

# encoding: utf-8
require 'dpd_api/client/response'
require 'dpd_api/debug/inspector'

module DpdApi
  class Base
    class << self
      def operations
        client.operations
      end

    protected

      def client
        @client ||= Client::Response.new(self.url)
        Debug::Inspector.new(@client) if DpdApi.configuration.debug
        @client
      end

      def response(method, params = {}, options = {})
        client.response(method, params, options)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dpd_api-0.1.9 lib/dpd_api/base.rb
dpd_api-0.1.8 lib/dpd_api/base.rb
dpd_api-0.1.7 lib/dpd_api/base.rb
dpd_api-0.1.6 lib/dpd_api/base.rb
dpd_api-0.1.5 lib/dpd_api/base.rb
dpd_api-0.1.3 lib/dpd_api/base.rb