module Metacrunch class Fs::Entry attr_reader :filename, :archive_filename, :contents def initialize(filename:, archive_filename: nil, contents: nil) @filename = filename @archive_filename = archive_filename.presence @contents = contents end def from_archive? @archive_filename != nil end end end