Class: DpdApi::Configuration
- Inherits:
-
Object
- Object
- DpdApi::Configuration
- Defined in:
- lib/dpd_api/configuration.rb
Instance Attribute Summary collapse
-
#auth_params ⇒ Object
readonly
Returns the value of attribute auth_params.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#client_number ⇒ Object
Returns the value of attribute client_number.
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_params ⇒ Object (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_url ⇒ Object
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_key ⇒ Object
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_number ⇒ Object
Returns the value of attribute client_number.
21 22 23 |
# File 'lib/dpd_api/configuration.rb', line 21 def client_number @client_number end |
#debug ⇒ Object
Returns the value of attribute debug.
21 22 23 |
# File 'lib/dpd_api/configuration.rb', line 21 def debug @debug end |