Class: Blobby::FakeSuccessStore::StoredObject
- Inherits:
-
Object
- Object
- Blobby::FakeSuccessStore::StoredObject
- Defined in:
- lib/blobby/fake_success_store.rb
Instance Method Summary collapse
Instance Method Details
#delete ⇒ Object
44 45 46 |
# File 'lib/blobby/fake_success_store.rb', line 44 def delete true end |
#exists? ⇒ Boolean
20 21 22 |
# File 'lib/blobby/fake_success_store.rb', line 20 def exists? true end |
#read ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/blobby/fake_success_store.rb', line 24 def read image_path = Pathname(File.dirname(__FILE__)) + "placeholder.png" image_path.open("rb") do |io| if block_given? while (chunk = io.read(512)) yield chunk end nil else io.read end end rescue Errno::ENOENT nil end |
#write(_content) ⇒ Object
40 41 42 |
# File 'lib/blobby/fake_success_store.rb', line 40 def write(_content) nil end |