Class: TreeHaver::ZipFamilyReport
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ZipFamilyReport
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#archive ⇒ Object
Returns the value of attribute archive.
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#member_decisions ⇒ Object
Returns the value of attribute member_decisions.
-
#merge_report ⇒ Object
Returns the value of attribute merge_report.
-
#unsafe_entries ⇒ Object
Returns the value of attribute unsafe_entries.
Instance Method Summary collapse
Instance Attribute Details
#archive ⇒ Object
Returns the value of attribute archive
307 308 309 |
# File 'lib/tree_haver/contracts.rb', line 307 def archive @archive end |
#entries ⇒ Object
Returns the value of attribute entries
307 308 309 |
# File 'lib/tree_haver/contracts.rb', line 307 def entries @entries end |
#member_decisions ⇒ Object
Returns the value of attribute member_decisions
307 308 309 |
# File 'lib/tree_haver/contracts.rb', line 307 def member_decisions @member_decisions end |
#merge_report ⇒ Object
Returns the value of attribute merge_report
307 308 309 |
# File 'lib/tree_haver/contracts.rb', line 307 def merge_report @merge_report end |
#unsafe_entries ⇒ Object
Returns the value of attribute unsafe_entries
307 308 309 |
# File 'lib/tree_haver/contracts.rb', line 307 def unsafe_entries @unsafe_entries end |
Instance Method Details
#to_h ⇒ Object
308 309 310 311 312 313 314 315 316 |
# File 'lib/tree_haver/contracts.rb', line 308 def to_h { archive: archive.to_h, entries: (entries || []).map(&:to_h), member_decisions: (member_decisions || []).map(&:to_h), unsafe_entries: (unsafe_entries || []).map(&:to_h), merge_report: merge_report.to_h } end |