lib/garb/profile.rb in jonuts-garb-0.2.4 vs lib/garb/profile.rb in jonuts-garb-0.2.6

- old
+ new

@@ -40,12 +40,12 @@ def id @table_id.from_ga end - def self.all(email=nil) + def self.all email = Session.email(email) - url = "https://www.google.com/analytics/feeds/accounts/#{email}" + url = "https://www.google.com/analytics/feeds/accounts/default" response = DataRequest.new(url).send_request(email) Entry.parse(response.body).map {|entry| new(entry, email)} end end end