Class: TreeHaver::ZipFamilyReport

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#archiveObject

Returns the value of attribute archive

Returns:

  • (Object)

    the current value of archive



914
915
916
# File 'lib/tree_haver/contracts.rb', line 914

def archive
  @archive
end

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



914
915
916
# File 'lib/tree_haver/contracts.rb', line 914

def entries
  @entries
end

#member_decisionsObject

Returns the value of attribute member_decisions

Returns:

  • (Object)

    the current value of member_decisions



914
915
916
# File 'lib/tree_haver/contracts.rb', line 914

def member_decisions
  @member_decisions
end

#merge_reportObject

Returns the value of attribute merge_report

Returns:

  • (Object)

    the current value of merge_report



914
915
916
# File 'lib/tree_haver/contracts.rb', line 914

def merge_report
  @merge_report
end

#unsafe_entriesObject

Returns the value of attribute unsafe_entries

Returns:

  • (Object)

    the current value of unsafe_entries



914
915
916
# File 'lib/tree_haver/contracts.rb', line 914

def unsafe_entries
  @unsafe_entries
end

Instance Method Details

#to_hObject



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