Class: Epuber::EncryptionHandler::EncryptionItem
- Inherits:
-
Object
- Object
- Epuber::EncryptionHandler::EncryptionItem
- Defined in:
- lib/epuber/from_file/encryption_handler.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ String
Encryption algorithm (probably EncryptionHandler::ADOBE_OBFUSCATION or EncryptionHandler::IDPF_OBFUSCATION).
-
#file_path ⇒ String
Absolute path to file (from root of EPUB).
-
#key ⇒ String?
Encryption key for this file.
Instance Method Summary collapse
-
#initialize(algorithm, file_path) ⇒ EncryptionItem
constructor
A new instance of EncryptionItem.
Constructor Details
#initialize(algorithm, file_path) ⇒ EncryptionItem
Returns a new instance of EncryptionItem.
31 32 33 34 |
# File 'lib/epuber/from_file/encryption_handler.rb', line 31 def initialize(algorithm, file_path) @algorithm = algorithm @file_path = file_path end |
Instance Attribute Details
#algorithm ⇒ String
Encryption algorithm (probably EncryptionHandler::ADOBE_OBFUSCATION or EncryptionHandler::IDPF_OBFUSCATION)
14 15 16 |
# File 'lib/epuber/from_file/encryption_handler.rb', line 14 def algorithm @algorithm end |
#file_path ⇒ String
Absolute path to file (from root of EPUB)
20 21 22 |
# File 'lib/epuber/from_file/encryption_handler.rb', line 20 def file_path @file_path end |
#key ⇒ String?
Encryption key for this file
26 27 28 |
# File 'lib/epuber/from_file/encryption_handler.rb', line 26 def key @key end |