Sha256: 6da5230b5b198995d491d0e14d64b3b2e654a751783ea928c4b17073ff41b14d
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2019-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module Hashematics # A RecordSet creates Records and maintains a master list of Records. class RecordSet attr_reader :records def initialize @records = [] freeze end def rows records.map(&:data) end def add(object) Record.new(object).tap { |r| records << r } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hashematics-1.1.0 | lib/hashematics/record_set.rb |
hashematics-1.0.0 | lib/hashematics/record_set.rb |