Skip to content

Instantly share code, notes, and snippets.

@gmgent
Created April 23, 2011 06:50
Show Gist options
  • Save gmgent/938424 to your computer and use it in GitHub Desktop.
Save gmgent/938424 to your computer and use it in GitHub Desktop.
module DataGrid
class Page
attr_reader :page_no, :sections
def initialize(page_no, type)
@page_no = page_no
@sections = []
@type = type
end
def add_section(care_area, population, total_records, records)
@sections << Section.new(care_area, population, total_records, records)
end
def data_grid?
@type == DATA_GRID_SIGNAL
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment