Class: FeedTools::Cache::YAML::StorePath
- Inherits:
-
Object
- Object
- FeedTools::Cache::YAML::StorePath
- Defined in:
- lib/feedtools/cache/yaml.rb
Overview
helper class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(type, key, base_store_path = nil) ⇒ StorePath
constructor
:nodoc:.
- #to_s ⇒ Object
Constructor Details
#initialize(type, key, base_store_path = nil) ⇒ StorePath
:nodoc:
16 17 18 19 |
# File 'lib/feedtools/cache/yaml.rb', line 16 def initialize(type, key, base_store_path = nil) base_store_path ||= defalut_base_store_path @path = File.join(base_store_path, type, hash_path(key)) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
20 21 22 |
# File 'lib/feedtools/cache/yaml.rb', line 20 def path @path end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/feedtools/cache/yaml.rb', line 22 def to_s @path.to_s end |