mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-15 00:00:44 -04:00
17 lines
441 B
Ruby
17 lines
441 B
Ruby
module Stripe
|
|
class Product < APIResource
|
|
include Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Update
|
|
|
|
# Keep APIResource#url as `api_url` to avoid letting the external URL
|
|
# replace the Stripe URL.
|
|
alias_method :api_url, :url
|
|
|
|
# Override Stripe::APIOperations::Update#save to explicitly pass URL.
|
|
def save
|
|
super(req_url: api_url)
|
|
end
|
|
end
|
|
end
|