Class: AppProfiler::Storage::FileStorage::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/app_profiler/storage/file_storage.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Location

Returns a new instance of Location.



7
8
9
# File 'lib/app_profiler/storage/file_storage.rb', line 7

def initialize(file)
  @file = file
end

Instance Method Details

#nameObject



15
16
17
# File 'lib/app_profiler/storage/file_storage.rb', line 15

def name
  @file.basename
end

#urlObject



11
12
13
# File 'lib/app_profiler/storage/file_storage.rb', line 11

def url
  @file
end