Update syntax to work in ruby 1.9

This commit is contained in:
Bradley Grzesiak 2011-07-08 17:26:42 -07:00
parent b03a4165df
commit 16c3d4f3b9

View File

@ -17,9 +17,9 @@ module Stripe
get_params = (opts[:headers] || {})[:params]
post_params = opts[:payload]
case opts[:method]
when :get: @mock_rest_client.get opts[:url], get_params, post_params
when :post: @mock_rest_client.post opts[:url], get_params, post_params
when :delete: @mock_rest_client.delete opts[:url], get_params, post_params
when :get then @mock_rest_client.get opts[:url], get_params, post_params
when :post then @mock_rest_client.post opts[:url], get_params, post_params
when :delete then @mock_rest_client.delete opts[:url], get_params, post_params
end
end
end