class Hashematics::RecordSet

A RecordSet creates Records and maintains a master list of Records.

Attributes

records[R]

Public Class Methods

new() click to toggle source
# File lib/hashematics/record_set.rb, line 15
def initialize
  @records = []

  freeze
end

Public Instance Methods

add(object) click to toggle source
# File lib/hashematics/record_set.rb, line 25
def add(object)
  Record.new(object).tap { |r| records << r }
end
rows() click to toggle source
# File lib/hashematics/record_set.rb, line 21
def rows
  records.map(&:data)
end