class Reports

Attributes

base[RW]
date[RW]
top[RW]

Public Class Methods

all() click to toggle source
# File lib/snowbowl/reports.rb, line 19
def self.all
  @@all
end
create_from_scrape(data) click to toggle source
# File lib/snowbowl/reports.rb, line 13
def self.create_from_scrape(data)
  data.each do |hash|
    self.new(hash[:date], hash[:top], hash[:base])
  end
end
new(date, top, base) click to toggle source
# File lib/snowbowl/reports.rb, line 6
def initialize(date, top, base)
  @date = date
  @top = top
  @base = base
  @@all << self
end