Class: FManager::FileMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/fmanager/fmeta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fsize, path, digest) ⇒ FileMeta

Returns a new instance of FileMeta.



8
9
10
11
12
# File 'lib/fmanager/fmeta.rb', line 8

def initialize(fsize, path, digest)
    @fsize = fsize
    @digest = digest
    @path = path
end

Instance Attribute Details

#digestObject (readonly)

Returns the value of attribute digest.



5
6
7
# File 'lib/fmanager/fmeta.rb', line 5

def digest
  @digest
end

#fsizeObject (readonly)

Returns the value of attribute fsize.



4
5
6
# File 'lib/fmanager/fmeta.rb', line 4

def fsize
  @fsize
end

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/fmanager/fmeta.rb', line 6

def path
  @path
end