Class: B2bCenterApi::Settings
- Inherits:
-
Object
- Object
- B2bCenterApi::Settings
- Defined in:
- lib/b2b_center_api/settings.rb
Overview
A ‘global’ config.
Class Attribute Summary collapse
-
.auth_options ⇒ Object
readonly
Returns the value of attribute auth_options.
-
.soap_options ⇒ Object
readonly
Returns the value of attribute soap_options.
Class Method Summary collapse
- .auth_configure(opts = {}) ⇒ Object
-
.soap_configure(opts = {}) ⇒ Object
Configure through hash.
Class Attribute Details
.auth_options ⇒ Object (readonly)
Returns the value of attribute auth_options.
17 18 19 |
# File 'lib/b2b_center_api/settings.rb', line 17 def @auth_options end |
.soap_options ⇒ Object (readonly)
Returns the value of attribute soap_options.
17 18 19 |
# File 'lib/b2b_center_api/settings.rb', line 17 def @soap_options end |
Class Method Details
.auth_configure(opts = {}) ⇒ Object
12 13 14 |
# File 'lib/b2b_center_api/settings.rb', line 12 def self.auth_configure(opts = {}) opts.each { |k, v| @auth_options[k.to_sym] = v } end |
.soap_configure(opts = {}) ⇒ Object
Configure through hash
8 9 10 |
# File 'lib/b2b_center_api/settings.rb', line 8 def self.soap_configure(opts = {}) opts.each { |k, v| @soap_options[k.to_sym] = v } end |