Class: Fclay::Configuration
- Inherits:
-
Object
- Object
- Fclay::Configuration
- Defined in:
- lib/fclay/configuration.rb
Instance Attribute Summary collapse
-
#local_folder ⇒ Object
Returns the value of attribute local_folder.
-
#local_storage_host ⇒ Object
Returns the value of attribute local_storage_host.
-
#local_url ⇒ Object
Returns the value of attribute local_url.
-
#remote_storages ⇒ Object
Returns the value of attribute remote_storages.
-
#storage_policy ⇒ Object
Returns the value of attribute storage_policy.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #storages {|@remote_storages| ... } ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/fclay/configuration.rb', line 9 def initialize @local_storage_host = "" @storage_policy = :local @remote_storages = {} @local_url = "/system/local_storage" @local_folder = "/public#{@local_url}" end |
Instance Attribute Details
#local_folder ⇒ Object
Returns the value of attribute local_folder.
7 8 9 |
# File 'lib/fclay/configuration.rb', line 7 def local_folder @local_folder end |
#local_storage_host ⇒ Object
Returns the value of attribute local_storage_host.
3 4 5 |
# File 'lib/fclay/configuration.rb', line 3 def local_storage_host @local_storage_host end |
#local_url ⇒ Object
Returns the value of attribute local_url.
6 7 8 |
# File 'lib/fclay/configuration.rb', line 6 def local_url @local_url end |
#remote_storages ⇒ Object
Returns the value of attribute remote_storages.
5 6 7 |
# File 'lib/fclay/configuration.rb', line 5 def remote_storages @remote_storages end |
#storage_policy ⇒ Object
Returns the value of attribute storage_policy.
4 5 6 |
# File 'lib/fclay/configuration.rb', line 4 def storage_policy @storage_policy end |
Instance Method Details
#storages {|@remote_storages| ... } ⇒ Object
17 18 19 |
# File 'lib/fclay/configuration.rb', line 17 def storages(&block) yield(@remote_storages) end |