Sha256: 0cb231ce4138336d4110bd822063e71fdf76505de416ca7b4f0b63ff634a6072
Contents?: true
Size: 622 Bytes
Versions: 3
Compression:
Stored size: 622 Bytes
Contents
# encoding: utf-8 module DpdApi class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor :client_key, :client_number, :base_url attr_reader :auth_params def initialize @client_key = '123' @client_number = '234' @base_url = 'http://wstest.dpd.ru' end def auth_params { auth: { client_number: client_number, client_key: client_key, } } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dpd_api-0.1.2 | lib/dpd_api/configuration.rb |
dpd_api-0.1.1 | lib/dpd_api/configuration.rb |
dpd_api-0.1.0 | lib/dpd_api/configuration.rb |