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



307
308
309
# File 'lib/tree_haver/contracts.rb', line 307

def archive
  @archive
end

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



307
308
309
# File 'lib/tree_haver/contracts.rb', line 307

def entries
  @entries
end

#member_decisionsObject

Returns the value of attribute member_decisions

Returns:

  • (Object)

    the current value of member_decisions



307
308
309
# File 'lib/tree_haver/contracts.rb', line 307

def member_decisions
  @member_decisions
end

#merge_reportObject

Returns the value of attribute merge_report

Returns:

  • (Object)

    the current value of merge_report



307
308
309
# File 'lib/tree_haver/contracts.rb', line 307

def merge_report
  @merge_report
end

#unsafe_entriesObject

Returns the value of attribute unsafe_entries

Returns:

  • (Object)

    the current value of unsafe_entries



307
308
309
# File 'lib/tree_haver/contracts.rb', line 307

def unsafe_entries
  @unsafe_entries
end

Instance Method Details

#to_hObject



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