Class: B2bCenterApi::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/b2b_center_api/settings.rb

Overview

A ‘global’ config.

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.auth_optionsObject (readonly)

Returns the value of attribute auth_options.



17
18
19
# File 'lib/b2b_center_api/settings.rb', line 17

def auth_options
  @auth_options
end

.soap_optionsObject (readonly)

Returns the value of attribute soap_options.



17
18
19
# File 'lib/b2b_center_api/settings.rb', line 17

def soap_options
  @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