Class: Caboose::BlockCacheFile

Inherits:
Object
  • Object
show all
Defined in:
app/models/caboose/block_cache_file.rb

Instance Method Summary collapse

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_dumpObject


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