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.
-
#rootpath ⇒ Object
Returns the value of attribute rootpath.
-
#signature_name ⇒ Object
Returns the value of attribute signature_name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Configuration
constructor
A new instance of Configuration.
- #to_hash ⇒ Object
Constructor Details
#initialize(**args) ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/chamber/configuration.rb', line 15 def initialize(**args) = ContextResolver.resolve(**args) self.basepath = .fetch(:basepath) self.namespaces = .fetch(:namespaces) self.decryption_keys = .fetch(:decryption_keys) self.encryption_keys = .fetch(:encryption_keys) self.files = .fetch(:files) self.rootpath = .fetch(:rootpath) self.signature_name = .fetch(:signature_name) 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 |
#rootpath ⇒ Object
Returns the value of attribute rootpath.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def rootpath @rootpath end |
#signature_name ⇒ Object
Returns the value of attribute signature_name.
7 8 9 |
# File 'lib/chamber/configuration.rb', line 7 def signature_name @signature_name end |
Instance Method Details
#to_hash ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/chamber/configuration.rb', line 27 def to_hash { basepath: basepath, decryption_keys: decryption_keys, encryption_keys: encryption_keys, files: files, namespaces: namespaces, signature_name: signature_name, } end |