From 79ebb240cfed196fcd273971166f190751c6c75c Mon Sep 17 00:00:00 2001 From: Kalman Hazins Date: Fri, 9 May 2014 15:56:01 -0400 Subject: [PATCH] Update aaws.rb The new 1.9 symbol syntax inside hash --- examples/aaws.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/aaws.rb b/examples/aaws.rb index d48218e..3f6987f 100644 --- a/examples/aaws.rb +++ b/examples/aaws.rb @@ -10,10 +10,10 @@ module AAWS class Book include HTTParty base_uri 'http://ecs.amazonaws.com' - default_params :Service => 'AWSECommerceService', :Operation => 'ItemSearch', :SearchIndex => 'Books' + default_params Service: 'AWSECommerceService', Operation: 'ItemSearch', SearchIndex: 'Books' def initialize(key) - self.class.default_params :AWSAccessKeyId => key + self.class.default_params AWSAccessKeyId: key end def search(options={}) @@ -29,4 +29,4 @@ module AAWS end aaws = AAWS::Book.new(config[:access_key]) -pp aaws.search(:query => {:title => 'Ruby On Rails'}) +pp aaws.search(query: {title: 'Ruby On Rails'})