Class: Fog::Storage::Local::Real
- Inherits:
-
Object
- Object
- Fog::Storage::Local::Real
- Defined in:
- lib/fog/local/storage.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Real
constructor
A new instance of Real.
- #local_root ⇒ Object
- #path_to(partial) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
55 56 57 58 |
# File 'lib/fog/local/storage.rb', line 55 def initialize(={}) require 'mime/types' @local_root = ::File.([:local_root]) end |
Instance Method Details
#local_root ⇒ Object
60 61 62 |
# File 'lib/fog/local/storage.rb', line 60 def local_root @local_root end |
#path_to(partial) ⇒ Object
64 65 66 |
# File 'lib/fog/local/storage.rb', line 64 def path_to(partial) ::File.join(@local_root, partial) end |