Sha256: ffb50b52c55b58ebaa1873b176831b05b863ff046804c60651f0f0ea4204873b
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-1.27.0 | lib/stripe/product.rb |