lib/gratitude/statistics.rb in gratitude-0.0.6 vs lib/gratitude/statistics.rb in gratitude-0.0.7
- old
+ new
@@ -3,9 +3,13 @@
include HTTParty
base_uri "https://www.gittip.com/about/stats.json"
attr_reader :response
+ class << self
+ alias :current :new
+ end
+
def initialize
@response = self.class.get("")
end
def average_tip_amount
\ No newline at end of file