Class: HashThatTree::FileHashResults

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

Overview

Container for the results of the file comparisson

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name, file_hash1, file_hash2) ⇒ FileHashResults

Returns a new instance of FileHashResults.



114
115
116
117
118
# File 'lib/compare.rb', line 114

def initialize(file_name, file_hash1, file_hash2)
@file_name = file_name
@file_hash1 = file_hash1
@file_hash2 = file_hash2
end

Instance Attribute Details

#file_hash1Object

Returns the value of attribute file_hash1.



113
114
115
# File 'lib/compare.rb', line 113

def file_hash1
  @file_hash1
end

#file_hash2Object

Returns the value of attribute file_hash2.



113
114
115
# File 'lib/compare.rb', line 113

def file_hash2
  @file_hash2
end

#file_nameObject

Returns the value of attribute file_name.



113
114
115
# File 'lib/compare.rb', line 113

def file_name
  @file_name
end