Class: DpdApi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dpd_api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



28
29
30
31
32
33
# File 'lib/dpd_api/configuration.rb', line 28

def initialize
  @client_key    = ENV['DPD_CLIENT_KEY']    || '123'
  @client_number = ENV['DPD_CLIENT_NUMBER'] || '234'
  @base_url      = 'http://wstest.dpd.ru'
  @debug         = false
end

Instance Attribute Details

#auth_paramsObject (readonly)

Returns the value of attribute auth_params.



26
27
28
# File 'lib/dpd_api/configuration.rb', line 26

def auth_params
  @auth_params
end

#base_urlObject

Returns the value of attribute base_url.



21
22
23
# File 'lib/dpd_api/configuration.rb', line 21

def base_url
  @base_url
end

#client_keyObject

Returns the value of attribute client_key.



21
22
23
# File 'lib/dpd_api/configuration.rb', line 21

def client_key
  @client_key
end

#client_numberObject

Returns the value of attribute client_number.



21
22
23
# File 'lib/dpd_api/configuration.rb', line 21

def client_number
  @client_number
end

#debugObject

Returns the value of attribute debug.



21
22
23
# File 'lib/dpd_api/configuration.rb', line 21

def debug
  @debug
end