Clean up library classes

This commit is contained in:
Alex Ling
2020-12-30 15:23:38 +00:00
parent cf930418cb
commit db2a51a26b
3 changed files with 19 additions and 17 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
require "image_size"
class Entry
property zip_path : String, book : Title, title : String,
getter zip_path : String, book : Title, title : String,
size : String, pages : Int32, id : String, encoded_path : String,
encoded_title : String, mtime : Time, err_msg : String?
def initialize(@zip_path, @book, storage)
def initialize(@zip_path, @book)
storage = Storage.default
@encoded_path = URI.encode @zip_path
@title = File.basename @zip_path, File.extname @zip_path
@encoded_title = URI.encode @title