README.md in google-cloud-bigquery-data_transfer-0.2.3 vs README.md in google-cloud-bigquery-data_transfer-0.2.4
- old
+ new
@@ -23,19 +23,19 @@
### Preview
#### DataTransferServiceClient
```rb
require "google/cloud/bigquery/data_transfer"
-data_transfer_service_client = Google::Cloud::Bigquery::DataTransfer.new
+data_transfer_client = Google::Cloud::Bigquery::DataTransfer.new
formatted_parent = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferServiceClient.project_path(project_id)
# Iterate over all results.
-data_transfer_service_client.list_data_sources(formatted_parent).each do |element|
+data_transfer_client.list_data_sources(formatted_parent).each do |element|
# Process element.
end
# Or iterate over results one page at a time.
-data_transfer_service_client.list_data_sources(formatted_parent).each_page do |page|
+data_transfer_client.list_data_sources(formatted_parent).each_page do |page|
# Process each page at a time.
page.each do |element|
# Process element.
end
end