mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-21 00:00:42 -04:00
Update syntax to work in ruby 1.9
This commit is contained in:
parent
b03a4165df
commit
16c3d4f3b9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user