From a582f208a3e69d19b4dacce1075f176f866026fd Mon Sep 17 00:00:00 2001 From: Jack McCallum Date: Wed, 22 Nov 2017 11:42:07 +1100 Subject: [PATCH] Use snake_case in ruby --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 929985b..67ca257 100644 --- a/README.md +++ b/README.md @@ -51,25 +51,25 @@ Usage Send the image request using a file: ```ruby -requestData = Cloudsight::Request.send(locale: 'en', file: File.open('image.jpg')) +request_data = Cloudsight::Request.send(locale: 'en', file: File.open('image.jpg')) ``` Or, you can send the image request using a URL: ```ruby -requestData = Cloudsight::Request.send(locale: 'en', url: 'http://www.google.com/images/srpr/logo11w.png') +request_data = Cloudsight::Request.send(locale: 'en', url: 'http://www.google.com/images/srpr/logo11w.png') ``` Then, use the token to retrieve the response: ```ruby -responseData = Cloudsight::Response.get(requestData['token']) +response_data = Cloudsight::Response.get(request_data['token']) ``` You can also use the `retrieve` method which will poll for the response for you: ```ruby -Cloudsight::Response.retrieve(requestData['token']) do |responseData| - p responseData +Cloudsight::Response.retrieve(request_data['token']) do |response_data| + p response_data end ```