Class: CookieMonster::Configuration
- Inherits:
-
Object
- Object
- CookieMonster::Configuration
- Defined in:
- lib/cookie_monster/configuration.rb
Instance Attribute Summary collapse
-
#cipher_type ⇒ Object
Returns the value of attribute cipher_type.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #iv ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/cookie_monster/configuration.rb', line 5 def initialize @cipher_type = 'AES-256-CBC' end |
Instance Attribute Details
#cipher_type ⇒ Object
Returns the value of attribute cipher_type.
3 4 5 |
# File 'lib/cookie_monster/configuration.rb', line 3 def cipher_type @cipher_type end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/cookie_monster/configuration.rb', line 3 def key @key end |
Instance Method Details
#iv ⇒ Object
9 10 11 |
# File 'lib/cookie_monster/configuration.rb', line 9 def iv rand.to_s end |