Class: Chamber::Configuration
- Inherits:
-
Object
- Object
- Chamber::Configuration
- Defined in:
- lib/chamber/configuration.rb
Instance Attribute Summary collapse
-
#basepath ⇒ Object
Returns the value of attribute basepath.
-
#decryption_keys ⇒ Object
Returns the value of attribute decryption_keys.
-
#encryption_keys ⇒ Object
Returns the value of attribute encryption_keys.
-
#files ⇒ Object
Returns the value of attribute files.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
- #to_hash ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 |
# File 'lib/chamber/configuration.rb', line 13 def initialize( = {}) = ContextResolver.resolve() self.basepath = .fetch(:basepath) self.namespaces = .fetch(:namespaces) self.decryption_keys = .fetch(:decryption_keys) self.encryption_keys = .fetch(:encryption_keys) self.files = .fetch(:files) end |
Instance Attribute Details
#basepath ⇒ Object
Returns the value of attribute basepath.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def basepath @basepath end |
#decryption_keys ⇒ Object
Returns the value of attribute decryption_keys.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def decryption_keys @decryption_keys end |
#encryption_keys ⇒ Object
Returns the value of attribute encryption_keys.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def encryption_keys @encryption_keys end |
#files ⇒ Object
Returns the value of attribute files.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def files @files end |
#namespaces ⇒ Object
Returns the value of attribute namespaces.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def namespaces @namespaces end |
Instance Method Details
#to_hash ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/chamber/configuration.rb', line 23 def to_hash { basepath: basepath, decryption_keys: decryption_keys, encryption_keys: encryption_keys, files: files, namespaces: namespaces, } end |