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.



27
28
29
# File 'lib/b2b_center_api/settings.rb', line 27

def auth_options
  @auth_options
end

.ftp_optionsObject (readonly)

Returns the value of attribute ftp_options.



27
28
29
# File 'lib/b2b_center_api/settings.rb', line 27

def ftp_options
  @ftp_options
end

.soap_optionsObject (readonly)

Returns the value of attribute soap_options.



27
28
29
# File 'lib/b2b_center_api/settings.rb', line 27

def soap_options
  @soap_options
end

.socks_optionsObject (readonly)

Returns the value of attribute socks_options.



27
28
29
# File 'lib/b2b_center_api/settings.rb', line 27

def socks_options
  @socks_options
end

Class Method Details

.auth_configure(opts = {}) ⇒ Object



14
15
16
# File 'lib/b2b_center_api/settings.rb', line 14

def self.auth_configure(opts = {})
  opts.each { |k, v| @auth_options[k.to_sym] = v }
end

.ftp_configure(opts = {}) ⇒ Object



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

def self.ftp_configure(opts = {})
  opts.each { |k, v| @ftp_options[k.to_sym] = v }
end

.soap_configure(opts = {}) ⇒ Object

Configure through hash



10
11
12
# File 'lib/b2b_center_api/settings.rb', line 10

def self.soap_configure(opts = {})
  opts.each { |k, v| @soap_options[k.to_sym] = v }
end

.socks_configure(opts = {}) ⇒ Object



22
23
24
# File 'lib/b2b_center_api/settings.rb', line 22

def self.socks_configure(opts = {})
  opts.each { |k, v| @socks_options[k.to_sym] = v }
end