GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
kneath (author)
Sun May 11 22:18:10 -0700 2008
commit  5f97998a36ef6d4af5a6b18ed73e976b29a17a99
tree    43b24e6fb938e876d6c3a4c7128fce8398df6f44
parent  45bab61ace1174c37cbfeea8c44c83cb0f45fcde
greed / app / models / date_range.rb
100644 20 lines (15 sloc) 0.319 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class DateRange
  
  attr_accessor :start_date, :end_date, :impressions, :clicks
  
  def initialize(start_date, end_date)
    @start_date = start_date
    @end_date = end_date
    @impressions = 0
    @clicks = 0
  end
  
  def date
    @start_date
  end
  
  def short_date
    @start_date.strftime("%e")
  end
  
end