Class: AppProfiler::Storage::FileStorage::Location
- Inherits:
-
Object
- Object
- AppProfiler::Storage::FileStorage::Location
- Defined in:
- lib/app_profiler/storage/file_storage.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Location
constructor
A new instance of Location.
- #name ⇒ Object
- #url ⇒ Object
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
#name ⇒ Object
15 16 17 |
# File 'lib/app_profiler/storage/file_storage.rb', line 15 def name @file.basename end |
#url ⇒ Object
11 12 13 |
# File 'lib/app_profiler/storage/file_storage.rb', line 11 def url @file end |