Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06052d6

Browse files
author
Frank Natividad
committed
Removed region tags.
1 parent a3b929e commit 06052d6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

7-compute-engine/app/jobs/lookup_book_details_job.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START lookup_books]
1514
require "google/apis/books_v1"
1615

1716
BooksAPI = Google::Apis::BooksV1
@@ -44,8 +43,7 @@ def perform book
4443

4544
# List of relevant books
4645
volumes = results.items
47-
# [END lookup_books]
48-
# [START choose_volume]
46+
4947
# To provide the best results, find the first returned book that
5048
# includes title and author information as well as a book cover image.
5149
best_match = volumes.find {|volume|
@@ -54,9 +52,7 @@ def perform book
5452
}
5553

5654
volume = best_match || volumes.first
57-
# [END choose_volume]
5855

59-
# [START update_book]
6056
if volume
6157
info = volume.volume_info
6258
images = info.image_links
@@ -72,10 +68,8 @@ def perform book
7268
present?
7369
book.save
7470
end
75-
# [END update_book]
7671

7772
Rails.logger.info "[BookService] (#{book.id}) Complete"
7873
end
7974
end
8075
end
81-
# [END book_lookup]

0 commit comments

Comments
 (0)