lib/google/cloud/bigquery/job/list.rb in google-cloud-bigquery-0.20.2 vs lib/google/cloud/bigquery/job/list.rb in google-cloud-bigquery-0.21.0

- old
+ new

@@ -40,14 +40,13 @@ # Whether there is a next page of jobs. # # @return [Boolean] # # @example - # require "google/cloud" + # require "google/cloud/bigquery" # - # gcloud = Google::Cloud.new - # bigquery = gcloud.bigquery + # bigquery = Google::Cloud::Bigquery.new # # jobs = bigquery.jobs # if jobs.next? # next_jobs = jobs.next # end @@ -59,14 +58,13 @@ # Retrieve the next page of jobs. # # @return [Job::List] # # @example - # require "google/cloud" + # require "google/cloud/bigquery" # - # gcloud = Google::Cloud.new - # bigquery = gcloud.bigquery + # bigquery = Google::Cloud::Bigquery.new # # jobs = bigquery.jobs # if jobs.next? # next_jobs = jobs.next # end @@ -95,33 +93,30 @@ # @yieldparam [Job] job The job object. # # @return [Enumerator] # # @example Iterating each job by passing a block: - # require "google/cloud" + # require "google/cloud/bigquery" # - # gcloud = Google::Cloud.new - # bigquery = gcloud.bigquery + # bigquery = Google::Cloud::Bigquery.new # # bigquery.jobs.all do |job| # puts job.state # end # # @example Using the enumerator by not passing a block: - # require "google/cloud" + # require "google/cloud/bigquery" # - # gcloud = Google::Cloud.new - # bigquery = gcloud.bigquery + # bigquery = Google::Cloud::Bigquery.new # # all_states = bigquery.jobs.all.map do |job| # job.state # end # # @example Limit the number of API calls made: - # require "google/cloud" + # require "google/cloud/bigquery" # - # gcloud = Google::Cloud.new - # bigquery = gcloud.bigquery + # bigquery = Google::Cloud::Bigquery.new # # bigquery.jobs.all(request_limit: 10) do |job| # puts job.state # end #