Module: WirecardMapper::Config
- Defined in:
- lib/wirecardmapper/config.rb
Class Attribute Summary collapse
-
.currency ⇒ Object
Returns the value of attribute currency.
-
.entity_id ⇒ Object
Returns the value of attribute entity_id.
-
.login ⇒ Object
Returns the value of attribute login.
-
.mode ⇒ Object
Returns the value of attribute mode.
-
.password ⇒ Object
Returns the value of attribute password.
-
.product_id ⇒ Object
Returns the value of attribute product_id.
- .server_port ⇒ Object
-
.server_uri ⇒ Object
Returns the value of attribute server_uri.
- .templates_path ⇒ Object
Class Method Summary collapse
Class Attribute Details
.currency ⇒ Object
Returns the value of attribute currency.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def currency @currency end |
.entity_id ⇒ Object
Returns the value of attribute entity_id.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def entity_id @entity_id end |
.login ⇒ Object
Returns the value of attribute login.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def login @login end |
.mode ⇒ Object
Returns the value of attribute mode.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def mode @mode end |
.password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def password @password end |
.product_id ⇒ Object
Returns the value of attribute product_id.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def product_id @product_id end |
.server_port ⇒ Object
22 23 24 |
# File 'lib/wirecardmapper/config.rb', line 22 def self.server_port @server_port ||= 443 end |
.server_uri ⇒ Object
Returns the value of attribute server_uri.
5 6 7 |
# File 'lib/wirecardmapper/config.rb', line 5 def server_uri @server_uri end |
.templates_path ⇒ Object
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
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 |