class SimpleReport::Sheet

Attributes

collection[R]
fields[R]
name[R]

Public Class Methods

new(name, collection) click to toggle source
# File lib/simple_report/sheet.rb, line 5
def initialize(name, collection)
  @name = name
  @collection = collection
  @fields = []
end

Public Instance Methods

add_field(name, field = nil, width: nil, format: nil, value: nil, force: nil, &block) click to toggle source
# File lib/simple_report/sheet.rb, line 11
def add_field(name, field = nil, width: nil, format: nil, value: nil, force: nil, &block)
  @fields << Field.new(name, field, width: width, format: format, value: value, force: force, &block)
end