Class: Thinning::File

Inherits:
Object
  • Object
show all
Defined in:
lib/thinning/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, timestamp) ⇒ File

Returns a new instance of File.



5
6
7
8
# File 'lib/thinning/file.rb', line 5

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/thinning/file.rb', line 3

def path
  @path
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



3
4
5
# File 'lib/thinning/file.rb', line 3

def timestamp
  @timestamp
end