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
914 915 916 |
# File 'lib/tree_haver/contracts.rb', line 914 def archive @archive end |
#entries ⇒ Object
Returns the value of attribute entries
914 915 916 |
# File 'lib/tree_haver/contracts.rb', line 914 def entries @entries end |
#member_decisions ⇒ Object
Returns the value of attribute member_decisions
914 915 916 |
# File 'lib/tree_haver/contracts.rb', line 914 def member_decisions @member_decisions end |
#merge_report ⇒ Object
Returns the value of attribute merge_report
914 915 916 |
# File 'lib/tree_haver/contracts.rb', line 914 def merge_report @merge_report end |
#unsafe_entries ⇒ Object
Returns the value of attribute unsafe_entries
914 915 916 |
# File 'lib/tree_haver/contracts.rb', line 914 def unsafe_entries @unsafe_entries end |
Instance Method Details
#to_h ⇒ Object
916 917 918 919 920 921 922 923 924 |
# File 'lib/tree_haver/contracts.rb', line 916 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 |