Sha256: 4798783d443bdbba839fac6498ceb252587ea266dcf641e898248052a5ddf2b8

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

module PivotTable
  class Row

    ACCESSORS = [:header, :data, :total]

    ACCESSORS.each do |a|
      self.send(:attr_accessor, a)
    end

    def initialize(options = {})
      ACCESSORS.each do |a|
        self.send("#{a}=", options[a]) if options.has_key?(a)
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pivot_table-0.1.1 lib/pivot_table/row.rb