lib/fog/google/models/monitoring/timeseries_collection.rb in fog-google-0.1.3 vs lib/fog/google/models/monitoring/timeseries_collection.rb in fog-google-0.2.0
- old
+ new
@@ -1,7 +1,7 @@
-require 'fog/core/collection'
-require 'fog/google/models/monitoring/timeseries'
+require "fog/core/collection"
+require "fog/google/models/monitoring/timeseries"
module Fog
module Google
class Monitoring
class TimeseriesCollection < Fog::Collection
@@ -20,10 +20,10 @@
# @options options [String] page_token The pagination token, which is used to page through large result sets.
# @options options [String] timespan Length of the time interval to query, which is an alternative way to
# declare the interval.
# @return [Array<Fog::Google::Monitoring::Timeseries>] List of Timeseries.
def all(metric, youngest, options = {})
- data = service.list_timeseries(metric, youngest, options).body['timeseries'] || []
+ data = service.list_timeseries(metric, youngest, options).body["timeseries"] || []
load(data)
end
end
end
end