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