Orbit/lib/orbit_app/module/visitor_counter.rb

29 lines
658 B
Ruby
Raw Normal View History

2013-07-18 04:03:18 +00:00
module OrbitApp
module Module
module VisitorCounter
Version = "0.1"
def display_visitors(options={})
Site.first.visitor_counters["total"]
2013-07-18 04:03:18 +00:00
end
def display_visitors_today
Site.first.visitor_counters["today"]
2013-07-18 04:03:18 +00:00
end
def display_visitors_this_week
Site.first.visitor_counters["this_week"]
2013-07-18 04:03:18 +00:00
end
def display_visitors_this_month
Site.first.visitor_counters["this_month"]
2013-07-18 04:03:18 +00:00
end
def display_visitors_this_year
Site.first.visitor_counters["this_year"]
2013-07-18 04:03:18 +00:00
end
end # of VisitorCounter
end # of Module
end # of OrbitApp