Class: Fog::Storage::Local::Real
- Inherits:
-
Object
- Object
- Fog::Storage::Local::Real
- Defined in:
- lib/fog/storage/local.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.
52 53 54 55 |
# File 'lib/fog/storage/local.rb', line 52 def initialize(={}) require 'mime/types' @local_root = ::File.([:local_root]) end |
Instance Method Details
#local_root ⇒ Object
57 58 59 |
# File 'lib/fog/storage/local.rb', line 57 def local_root @local_root end |
#path_to(partial) ⇒ Object
61 62 63 |
# File 'lib/fog/storage/local.rb', line 61 def path_to(partial) ::File.join(@local_root, partial) end |