Class: Frizz::Local::File

Inherits:
Object
  • Object
show all
Defined in:
lib/frizz/local.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, key) ⇒ File

Returns a new instance of File.



37
38
39
40
# File 'lib/frizz/local.rb', line 37

def initialize(path, key)
  @path = path
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



35
36
37
# File 'lib/frizz/local.rb', line 35

def key
  @key
end

#pathObject (readonly)

Returns the value of attribute path.



35
36
37
# File 'lib/frizz/local.rb', line 35

def path
  @path
end

Instance Method Details

#checksumObject



42
43
44
# File 'lib/frizz/local.rb', line 42

def checksum
  Digest::MD5.file(path)
end