Class: Voltron::Config::Encrypt

Inherits:
Object
  • Object
show all
Defined in:
lib/voltron/config/encrypt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEncrypt

Returns a new instance of Encrypt.



12
13
14
15
16
# File 'lib/voltron/config/encrypt.rb', line 12

def initialize
  @offset ||= 262144
  @seed ||= ""
  @blacklist ||= Rails.root.join("config", "locales", "blacklist.txt")
end

Instance Attribute Details

#blacklistObject

Returns the value of attribute blacklist.



10
11
12
# File 'lib/voltron/config/encrypt.rb', line 10

def blacklist
  @blacklist
end

#offsetObject

Returns the value of attribute offset.



10
11
12
# File 'lib/voltron/config/encrypt.rb', line 10

def offset
  @offset
end

#seedObject

Returns the value of attribute seed.



10
11
12
# File 'lib/voltron/config/encrypt.rb', line 10

def seed
  @seed
end