Class: Caboose::BlockCacheFile
- Inherits:
-
Object
- Object
- Caboose::BlockCacheFile
- Defined in:
- app/models/caboose/block_cache_file.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ BlockCacheFile
constructor
A new instance of BlockCacheFile.
- #marshal_dump ⇒ Object
- #marshal_load(array) ⇒ Object
- #url(style = nil) ⇒ Object
Constructor Details
#initialize(file) ⇒ BlockCacheFile
Returns a new instance of BlockCacheFile.
5 6 7 |
# File 'app/models/caboose/block_cache_file.rb', line 5 def initialize(file) @_url = file.url end |
Instance Method Details
#marshal_dump ⇒ Object
13 14 15 |
# File 'app/models/caboose/block_cache_file.rb', line 13 def marshal_dump [@_url] end |
#marshal_load(array) ⇒ Object
17 18 19 |
# File 'app/models/caboose/block_cache_file.rb', line 17 def marshal_load array @url = array.first end |
#url(style = nil) ⇒ Object
9 10 11 |
# File 'app/models/caboose/block_cache_file.rb', line 9 def url(style = nil) return @_url end |