Class: Pageflow::Panorama::Package
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Pageflow::Panorama::Package
- Includes:
- UploadableFile
- Defined in:
- app/models/pageflow/panorama/package.rb
Instance Method Summary collapse
- #index_document_path ⇒ Object
- #ready? ⇒ Boolean
-
#retry! ⇒ Object
UploadableFile-overrides.
- #thumbnail_url(*args) ⇒ Object
- #unpack_base_path ⇒ Object
Instance Method Details
#index_document_path ⇒ Object
41 42 43 44 45 |
# File 'app/models/pageflow/panorama/package.rb', line 41 def index_document_path if .present? && index_document File.join(Panorama.config.packages_base_path, unpack_base_path, index_document) end end |
#ready? ⇒ Boolean
56 57 58 |
# File 'app/models/pageflow/panorama/package.rb', line 56 def ready? unpacked? end |
#retry! ⇒ Object
UploadableFile-overrides
52 53 54 |
# File 'app/models/pageflow/panorama/package.rb', line 52 def retry! retry_unpacking! end |
#thumbnail_url(*args) ⇒ Object
37 38 39 |
# File 'app/models/pageflow/panorama/package.rb', line 37 def thumbnail_url(*args) thumbnail.url(*args) end |
#unpack_base_path ⇒ Object
47 48 49 |
# File 'app/models/pageflow/panorama/package.rb', line 47 def unpack_base_path .present? ? File.dirname(.path(:unpacked)) : nil end |