lib/ably/rest/client.rb in ably-0.8.1 vs lib/ably/rest/client.rb in ably-0.8.2
- old
+ new
@@ -148,11 +148,11 @@
# @option options [Integer,Time] :end Ensure latest time or millisecond since epoch for any stats retrieved is +:end+
# @option options [Symbol] :direction +:forwards+ or +:backwards+, defaults to +:backwards+
# @option options [Integer] :limit Maximum number of messages to retrieve up to 1,000, defaults to 100
# @option options [Symbol] :unit `:minute`, `:hour`, `:day` or `:month`. Defaults to `:minute`
#
- # @return [Ably::Models::PaginatedResource<Ably::Models::Stats>] An Array of Stats
+ # @return [Ably::Models::PaginatedResult<Ably::Models::Stats>] An Array of Stats
#
def stats(options = {})
options = {
:direction => :backwards,
:unit => :minute,
@@ -166,10 +166,10 @@
}
url = '/stats'
response = get(url, options)
- Ably::Models::PaginatedResource.new(response, url, self, paginated_options)
+ Ably::Models::PaginatedResult.new(response, url, self, paginated_options)
end
# Retrieve the Ably service time
#
# @return [Time] The time as reported by the Ably service