lib/fastly/service.rb in fastly-0.9 vs lib/fastly/service.rb in fastly-0.95
- old
+ new
@@ -35,13 +35,13 @@
# Type can be one of
# * minutely
# * hourly
# * daily
# * all
- def stats(type=:all)
+ def stats(type=:all, opts={})
raise Fastly::FullAuthRequired unless fetcher.fully_authed?
raise Fastly::Error "Unknown stats type #{type}" unless [:minutely,:hourly,:daily,:all].include?(type.to_sym)
- hash = fetcher.client.get(Fastly::Service.get_path(self.id)+"/stats/#{type}")
+ hash = fetcher.client.get(Fastly::Service.get_path(self.id)+"/stats/#{type}", opts)
return hash
end
# Return a Invoice object representing the invoice for this service
#
\ No newline at end of file