Sha256: b08a3716aca64a041c9b6d562b205c093d68e94f027f8918b111ff5b338ca686
Contents?: true
Size: 869 Bytes
Versions: 1
Compression:
Stored size: 869 Bytes
Contents
class EziiOsPath attr_accessor :global_path, :file_system # should stay for longer attr_accessor :dropbox_metainfo # should be refactored attr_accessor :https_url, :local_file_system_path, :complementary_local_file_system_paths # hacky def initialize(global_path) self.global_path = global_path self.file_system = FileSystem.find_by(machine_readable_identifier: file_system_identifier) self.complementary_local_file_system_paths = [] end def file_system_path global_path.sub(/\/[^\/]+/, '') end def file_system_identifier global_path.match(/\/([^\/]+)/)[1] end def to_s file_system_path end def inspect global_path end def file? self.file_system.file?(self) end def modified_at self.file_system.path_modified_at(self) end # def https_url # self.file_system.http_url(self) # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ezii-os-1.1.0 | app/models/ezii_os_path.rb |