class MountableFileServer::URI
Public Class Methods
new(string)
click to toggle source
Calls superclass method
# File lib/mountable_file_server/uri.rb, line 6 def initialize(string) super.freeze end
Public Instance Methods
filename()
click to toggle source
# File lib/mountable_file_server/uri.rb, line 14 def filename Pathname(::URI.parse(self).path).basename.to_s end
uid()
click to toggle source
# File lib/mountable_file_server/uri.rb, line 10 def uid UniqueIdentifier.new filename end