Sha256: 7756ce466efd86367815841d9a23d5f0d5b0523f138a96f2eca4b236136e4fb6
Contents?: true
Size: 398 Bytes
Versions: 11
Compression:
Stored size: 398 Bytes
Contents
class PassSummary attr_accessor :organization, :passes, :rows def initialize(organization, passes) @organization = organization @passes = passes @rows = {} process_passes end def process_passes @passes.each do |pass| pass_type_array = @rows.fetch(pass.pass_type, []) pass_type_array << pass @rows[pass.pass_type] = pass_type_array end end end
Version data entries
11 entries across 11 versions & 1 rubygems