Skip to content

Commit

Permalink
Merge pull request #692 from bmclean/master
Browse files Browse the repository at this point in the history
Fixing references to logging instead of datastore.
  • Loading branch information
blowmage committed May 12, 2016
2 parents dfac129 + 9a1259e commit 913c3a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/gcloud/datastore/dataset/query_results.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,22 @@ def next
end

##
# Retrieves all log entries by repeatedly loading {#next} until
# Retrieves all datastore entries by repeatedly loading {#next} until
# {#next?} returns `false`. Returns the list instance for method
# chaining.
#
# This method may make several API calls until all log entries are
# This method may make several API calls until all datastore entries are
# retrieved. Be sure to use as narrow a search criteria as possible.
# Please use with caution.
#
# @example
# require "gcloud"
#
# gcloud = Gcloud.new
# logging = gcloud.logging
# datastore = gcloud.datastore
# hour_ago = (Time.now - 60*60).utc.strftime('%FT%TZ')
# recent_errors = "timestamp >= \"#{hour_ago}\" severity >= ERROR"
# entries = logging.entries(filter: recent_errors).all
# entries = datastore.entries(filter: recent_errors).all
#
def all
while next?
Expand Down

0 comments on commit 913c3a5

Please sign in to comment.