Class: Pdfh::ZipType

Inherits:
Object
  • Object
show all
Includes:
Concerns::PasswordDecodable
Defined in:
lib/pdfh/models/zip_types.rb

Overview

Zip files which contains PDF files that need pre-processing

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::PasswordDecodable

#password, #password?

Constructor Details

#initialize(args) ⇒ self

Parameters:

  • args (Hash)


12
13
14
15
# File 'lib/pdfh/models/zip_types.rb', line 12

def initialize(args)
  args.each { |k, v| instance_variable_set(:"@#{k}", v) }
  @re_file = Regexp.new(re_file)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/pdfh/models/zip_types.rb', line 8

def name
  @name
end

#pwdObject (readonly)

Returns the value of attribute pwd.



8
9
10
# File 'lib/pdfh/models/zip_types.rb', line 8

def pwd
  @pwd
end

#re_fileObject (readonly)

Returns the value of attribute re_file.



8
9
10
# File 'lib/pdfh/models/zip_types.rb', line 8

def re_file
  @re_file
end