lib/stripe/order.rb in stripe-3.3.2 vs lib/stripe/order.rb in stripe-3.4.1
- old
+ new
@@ -2,28 +2,28 @@
class Order < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
- OBJECT_NAME = 'order'
+ OBJECT_NAME = "order".freeze
- def pay(params, opts={})
+ def pay(params, opts = {})
resp, opts = request(:post, pay_url, params, opts)
initialize_from(resp.data, opts)
end
- def return_order(params, opts={})
+ def return_order(params, opts = {})
resp, opts = request(:post, returns_url, params, opts)
Util.convert_to_stripe_object(resp.data, opts)
end
private
def pay_url
- resource_url + '/pay'
+ resource_url + "/pay"
end
def returns_url
- resource_url + '/returns'
+ resource_url + "/returns"
end
end
end