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_key ⇒ Object
Returns the value of attribute decryption_key.
-
#encryption_key ⇒ Object
Returns the value of attribute encryption_key.
-
#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.
11 12 13 14 15 16 17 18 19 |
# File 'lib/chamber/configuration.rb', line 11 def initialize( = {}) = ContextResolver.resolve() self.basepath = [:basepath] self.namespaces = [:namespaces] self.decryption_key = [:decryption_key] self.encryption_key = [:encryption_key] self.files = [:files] end |
Instance Attribute Details
#basepath ⇒ Object
Returns the value of attribute basepath.
5 6 7 |
# File 'lib/chamber/configuration.rb', line 5 def basepath @basepath end |
#decryption_key ⇒ Object
Returns the value of attribute decryption_key.
5 6 7 |
# File 'lib/chamber/configuration.rb', line 5 def decryption_key @decryption_key end |
#encryption_key ⇒ Object
Returns the value of attribute encryption_key.
5 6 7 |
# File 'lib/chamber/configuration.rb', line 5 def encryption_key @encryption_key end |
#files ⇒ Object
Returns the value of attribute files.
5 6 7 |
# File 'lib/chamber/configuration.rb', line 5 def files @files end |
#namespaces ⇒ Object
Returns the value of attribute namespaces.
5 6 7 |
# File 'lib/chamber/configuration.rb', line 5 def namespaces @namespaces end |
Instance Method Details
#to_hash ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/chamber/configuration.rb', line 21 def to_hash { basepath: self.basepath, decryption_key: self.decryption_key, encryption_key: self.encryption_key, files: self.files, namespaces: self.namespaces, } end |