Module: ErpCommerce::Config
- Defined in:
- lib/erp_commerce/config.rb
Class Attribute Summary collapse
-
.encryption_key ⇒ Object
Returns the value of attribute encryption_key.
Class Method Summary collapse
Class Attribute Details
.encryption_key ⇒ Object
Returns the value of attribute encryption_key.
4 5 6 |
# File 'lib/erp_commerce/config.rb', line 4 def encryption_key @encryption_key end |
Class Method Details
.configure(&blk) ⇒ Object
18 19 20 |
# File 'lib/erp_commerce/config.rb', line 18 def configure(&blk) @configure_blk = blk end |
.configure! ⇒ Object
22 23 24 |
# File 'lib/erp_commerce/config.rb', line 22 def configure! @configure_blk.call(self) if @configure_blk end |
.init! ⇒ Object
6 7 8 9 10 |
# File 'lib/erp_commerce/config.rb', line 6 def init! @defaults = { :@encryption_key => 'cd6fae94-9c2f-11e4-89d3-123b93f75cba' } end |
.reset! ⇒ Object
12 13 14 15 16 |
# File 'lib/erp_commerce/config.rb', line 12 def reset! @defaults.each do |k,v| instance_variable_set(k,v) end end |