Class: HashThatTree::FileHashResults
- Inherits:
-
Object
- Object
- HashThatTree::FileHashResults
- Defined in:
- lib/compare.rb
Overview
Container for the results of the file comparisson
Instance Attribute Summary collapse
-
#file_hash1 ⇒ Object
Returns the value of attribute file_hash1.
-
#file_hash2 ⇒ Object
Returns the value of attribute file_hash2.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
Instance Method Summary collapse
-
#initialize(file_name, file_hash1, file_hash2) ⇒ FileHashResults
constructor
A new instance of FileHashResults.
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_hash1 ⇒ Object
Returns the value of attribute file_hash1.
113 114 115 |
# File 'lib/compare.rb', line 113 def file_hash1 @file_hash1 end |
#file_hash2 ⇒ Object
Returns the value of attribute file_hash2.
113 114 115 |
# File 'lib/compare.rb', line 113 def file_hash2 @file_hash2 end |
#file_name ⇒ Object
Returns the value of attribute file_name.
113 114 115 |
# File 'lib/compare.rb', line 113 def file_name @file_name end |