Class: CookieMonster::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cookie_monster/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_typeObject

Returns the value of attribute cipher_type.



3
4
5
# File 'lib/cookie_monster/configuration.rb', line 3

def cipher_type
  @cipher_type
end

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/cookie_monster/configuration.rb', line 3

def key
  @key
end

Instance Method Details

#ivObject



9
10
11
# File 'lib/cookie_monster/configuration.rb', line 9

def iv
  rand.to_s
end