Module: WirecardMapper::Config

Defined in:
lib/wirecardmapper/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.currencyObject

Returns the value of attribute currency.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def currency
  @currency
end

.entity_idObject

Returns the value of attribute entity_id.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def entity_id
  @entity_id
end

.loginObject

Returns the value of attribute login.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def 
  @login
end

.modeObject

Returns the value of attribute mode.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def mode
  @mode
end

.passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def password
  @password
end

.product_idObject

Returns the value of attribute product_id.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def product_id
  @product_id
end

.server_portObject



22
23
24
# File 'lib/wirecardmapper/config.rb', line 22

def self.server_port
  @server_port ||= 443
end

.server_uriObject

Returns the value of attribute server_uri.



5
6
7
# File 'lib/wirecardmapper/config.rb', line 5

def server_uri
  @server_uri
end

.templates_pathObject



18
19
20
# File 'lib/wirecardmapper/config.rb', line 18

def self.templates_path
  @templates_path ||= "#{File.dirname(__FILE__)}/../../templates/"
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



14
15
16
# File 'lib/wirecardmapper/config.rb', line 14

def self.config
  yield self
end

.config=(config) ⇒ Object



10
11
12
# File 'lib/wirecardmapper/config.rb', line 10

def self.config=(config)
  config.each { |method, value| self.send("#{method}=", value) if self.respond_to?(method) }
end