Class: Uniword::Diff::ZipMetadataChange
- Inherits:
-
Object
- Object
- Uniword::Diff::ZipMetadataChange
- Defined in:
- lib/uniword/diff/package_diff_result.rb
Overview
Value object holding ZIP entry metadata differences.
Instance Attribute Summary collapse
-
#differences ⇒ Object
readonly
Returns the value of attribute differences.
-
#part ⇒ Object
readonly
Returns the value of attribute part.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(part:, differences:) ⇒ ZipMetadataChange
constructor
A new instance of ZipMetadataChange.
- #to_h ⇒ Object
Constructor Details
#initialize(part:, differences:) ⇒ ZipMetadataChange
Returns a new instance of ZipMetadataChange.
30 31 32 33 |
# File 'lib/uniword/diff/package_diff_result.rb', line 30 def initialize(part:, differences:) @part = part @differences = differences end |
Instance Attribute Details
#differences ⇒ Object (readonly)
Returns the value of attribute differences.
25 26 27 |
# File 'lib/uniword/diff/package_diff_result.rb', line 25 def differences @differences end |
#part ⇒ Object (readonly)
Returns the value of attribute part.
25 26 27 |
# File 'lib/uniword/diff/package_diff_result.rb', line 25 def part @part end |
Instance Method Details
#empty? ⇒ Boolean
35 36 37 |
# File 'lib/uniword/diff/package_diff_result.rb', line 35 def empty? @differences.empty? end |
#to_h ⇒ Object
39 40 41 |
# File 'lib/uniword/diff/package_diff_result.rb', line 39 def to_h { part: @part, differences: @differences } end |