Sha256: 8e0923be52b0c4e9cbb63c51d5e545a662add3fb07e43d63ee35f799030442e4

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

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

module DpdApi
  class Base
    class << self
      def operations
        client.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

1 entries across 1 versions & 1 rubygems

Version Path
dpd_api-0.1.10 lib/dpd_api/base.rb