Module: EntityCache::Controls::Store::External
- Defined in:
- lib/entity_cache/controls/store/external.rb,
lib/entity_cache/controls/store/external/write.rb,
lib/entity_cache/controls/store/external/example.rb,
lib/entity_cache/controls/store/external/not_implemented.rb
Defined Under Namespace
Modules: NotImplemented, Write
Classes: Example
Class Method Summary
collapse
Class Method Details
.example(subject = nil) ⇒ Object
5
6
7
8
9
|
# File 'lib/entity_cache/controls/store/external.rb', line 5
def self.example(subject=nil)
subject ||= Subject.example
Example.build(subject)
end
|
.path(subject, id = nil) ⇒ Object
39
40
41
42
43
|
# File 'lib/entity_cache/controls/store/external/example.rb', line 39
def self.path(subject, id=nil)
id ||= ID.example
File.join(tmpdir, "#{subject}-#{id}.yaml")
end
|
.tmpdir ⇒ Object
45
46
47
|
# File 'lib/entity_cache/controls/store/external/example.rb', line 45
def self.tmpdir
@tmpdir ||= Dir.tmpdir
end
|