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.



32
33
34
35
# File 'lib/frizz/local.rb', line 32

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



30
31
32
# File 'lib/frizz/local.rb', line 30

def key
  @key
end

#pathObject (readonly)

Returns the value of attribute path.



30
31
32
# File 'lib/frizz/local.rb', line 30

def path
  @path
end

Instance Method Details

#checksumObject



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

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