Method: ULS::Database#initialize

Defined in:
lib/uls/database.rb

#initialize(filename) ⇒ Database

Use to construct an interface to the Database zipfile/directory retrieved from the FCC. The filename may either be a zip file, in which case it will be extracted to the temporary directory, or may be an already extract directory containing the various ‘database’ files.



14
15
16
17
18
19
20
21
# File 'lib/uls/database.rb', line 14

def initialize(filename)
  path = Pathname.new(filename)
  if path.directory?
    @extracted_path = filename
  else
    @compressed_file = filename
  end
end