Method: MMS::Resource::Snapshot#table_section
- Defined in:
- lib/mms/resource/snapshot.rb
#table_section ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/mms/resource/snapshot.rb', line 79 def table_section rows = [] rows << table_row rows << :separator part_count = 0 @parts.each do |part| file_size_mb = part['fileSizeBytes'].to_i / (1024 * 1024) rows << [{ value: "part #{part_count}", colspan: 4, alignment: :right }, part['typeName'], part['replicaSetName'], "#{file_size_mb} MB"] part_count += 1 end rows << :separator rows end |