From 85c1892c127bb89a658dd68140ac125548ef9fd2 Mon Sep 17 00:00:00 2001 From: Dushyanth Maguluru Date: Mon, 20 Mar 2017 14:46:26 -0600 Subject: [PATCH] Fix urlshortner typo in MIGRATION.md --- MIGRATING.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MIGRATING.md b/MIGRATING.md index bbbbe242c..5a2bbdb72 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -125,15 +125,15 @@ client.execute(batch) In `0.9`, the equivalent code is: ```ruby -require 'google/apis/urlshortner_v1' +require 'google/apis/urlshortener_v1' urlshortener = Google::Apis::UrlshortenerV1::UrlshortenerService.new urlshortener.batch do |urlshortener| - urlshortner.insert_url({long_url: 'http://example.com/foo'}) do |res, err| + urlshortener.insert_url({long_url: 'http://example.com/foo'}) do |res, err| puts res end - urlshortner.insert_url({long_url: 'http://example.com/bar'}) do |res, err| + urlshortener.insert_url({long_url: 'http://example.com/bar'}) do |res, err| puts res end end @@ -142,14 +142,14 @@ end Or if sharing the same block: ```ruby -require 'google/apis/urlshortner_v1' +require 'google/apis/urlshortener_v1' urlshortener = Google::Apis::UrlshortenerV1::UrlshortenerService.new callback = lambda { |res, err| puts res } urlshortener.batch do |urlshortener| - urlshortner.insert_url({long_url: 'http://example.com/foo'}, &callback) - urlshortner.insert_url({long_url: 'http://example.com/bar'}, &callback) + urlshortener.insert_url({long_url: 'http://example.com/foo'}, &callback) + urlshortener.insert_url({long_url: 'http://example.com/bar'}, &callback) end ```