Class: Cabriolet::Models::LITHeader
- Inherits:
-
Object
- Object
- Cabriolet::Models::LITHeader
- Defined in:
- lib/cabriolet/models/lit_header.rb
Overview
Represents the header of a Microsoft Reader LIT file
LIT files are Microsoft Reader eBook files that use LZX compression and may use DES encryption for DRM-protected content.
Instance Attribute Summary collapse
-
#encrypted ⇒ Object
Returns the value of attribute encrypted.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#files ⇒ Object
Returns the value of attribute files.
-
#length ⇒ Object
Returns the value of attribute length.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#encrypted? ⇒ Boolean
Check if the LIT file is encrypted.
-
#initialize ⇒ LITHeader
constructor
A new instance of LITHeader.
Constructor Details
#initialize ⇒ LITHeader
Returns a new instance of LITHeader.
12 13 14 15 16 17 18 |
# File 'lib/cabriolet/models/lit_header.rb', line 12 def initialize @version = 0 @filename = "" @length = 0 @encrypted = false @files = [] end |
Instance Attribute Details
#encrypted ⇒ Object
Returns the value of attribute encrypted.
10 11 12 |
# File 'lib/cabriolet/models/lit_header.rb', line 10 def encrypted @encrypted end |
#filename ⇒ Object
Returns the value of attribute filename.
10 11 12 |
# File 'lib/cabriolet/models/lit_header.rb', line 10 def filename @filename end |
#files ⇒ Object
Returns the value of attribute files.
10 11 12 |
# File 'lib/cabriolet/models/lit_header.rb', line 10 def files @files end |
#length ⇒ Object
Returns the value of attribute length.
10 11 12 |
# File 'lib/cabriolet/models/lit_header.rb', line 10 def length @length end |
#version ⇒ Object
Returns the value of attribute version.
10 11 12 |
# File 'lib/cabriolet/models/lit_header.rb', line 10 def version @version end |
Instance Method Details
#encrypted? ⇒ Boolean
Check if the LIT file is encrypted
23 24 25 |
# File 'lib/cabriolet/models/lit_header.rb', line 23 def encrypted? @encrypted end |