Class: Neutrino::Storage::Null
- Inherits:
-
Object
- Object
- Neutrino::Storage::Null
- Defined in:
- lib/neutrino/storage/null.rb
Instance Attribute Summary collapse
-
#uploader ⇒ Object
readonly
Returns the value of attribute uploader.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(uploader) ⇒ Null
constructor
A new instance of Null.
- #store(new_file) ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(uploader) ⇒ Null
Returns a new instance of Null.
6 7 8 |
# File 'lib/neutrino/storage/null.rb', line 6 def initialize(uploader) @uploader = uploader end |
Instance Attribute Details
#uploader ⇒ Object (readonly)
Returns the value of attribute uploader.
4 5 6 |
# File 'lib/neutrino/storage/null.rb', line 4 def uploader @uploader end |
Instance Method Details
#delete ⇒ Object
10 |
# File 'lib/neutrino/storage/null.rb', line 10 def delete; nil; end |
#store(new_file) ⇒ Object
11 |
# File 'lib/neutrino/storage/null.rb', line 11 def store(new_file); true; end |
#url ⇒ Object
12 |
# File 'lib/neutrino/storage/null.rb', line 12 def url; nil; end |