Sha256: a97d13e0fa6826d29c8570823121b9ee3ab6e1f8b9fb96a7f7c1b872c84a753c
Contents?: true
Size: 777 Bytes
Versions: 3
Compression:
Stored size: 777 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 # hacky def initialize(global_path) self.global_path = global_path self.file_system = FileSystem.find_by(machine_readable_identifier: file_system_identifier) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ezii-os-1.0.0 | app/models/ezii_os_path.rb |
ezii-os-0.0.0.1.0 | app/models/ezii_os_path.rb |
ezii-os-0.0.0.0.1 | app/models/ezii_os_path.rb |