Class: FileHandlers::Lychee
- Inherits:
-
Base
- Object
- Base
- FileHandlers::Lychee
- Defined in:
- app/lib/file_handlers/lychee.rb
Constant Summary collapse
- ENVIRONMENTS =
i18n-tasks-use t('model_files.download.lychee')
[:client].freeze
- INPUT_TYPES =
Mime::EXTENSION_LOOKUP.slice("3mf", "lys", "obj", "stl").values.freeze
Class Method Summary collapse
Class Method Details
.icon ⇒ Object
17 18 19 |
# File 'app/lib/file_handlers/lychee.rb', line 17 def self.icon "images/external-icons/lychee.png" end |
.open_url_for(target, client_os: nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/lib/file_handlers/lychee.rb', line 9 def self.open_url_for(target, client_os: nil) URI::Generic.new( "lycheeslicer", nil, "open", nil, nil, CGI.escapeURIComponent(target), nil, nil, nil ).to_s end |