class BrowseEverything::Driver::Dropbox::ResourceFactory

Public Class Methods

build(metadata:, key:) click to toggle source
# File lib/browse_everything/driver/dropbox.rb, line 31
def self.build(metadata:, key:)
  path = metadata.path_display
  BrowseEverything::FileEntry.new(
    path,
    [key, path].join(':'),
    File.basename(path),
    nil,
    nil,
    true
  )
end