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

Version Path
artfully_ose-1.3.0.pre4 app/models/pass_summary.rb
artfully_ose-1.3.0.pre3 app/models/pass_summary.rb
artfully_ose-1.3.0.pre2 app/models/pass_summary.rb
artfully_ose-1.3.0.pre1 app/models/pass_summary.rb
artfully_ose-1.2.0 app/models/pass_summary.rb
artfully_ose-1.2.0.beta.1 app/models/pass_summary.rb
artfully_ose-1.2.0.alpha.2 app/models/pass_summary.rb
artfully_ose-1.2.0.alpha.1 app/models/pass_summary.rb
artfully_ose-1.2.0.pre.27 app/models/pass_summary.rb
artfully_ose-1.2.0.pre.26 app/models/pass_summary.rb
artfully_ose-1.2.0.pre.24 app/models/pass_summary.rb