Sha256: fd876b4f31c2e1d9681dc0d246994033171a5f2ce00a00541618401cbbaba017

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

module Stripe
  class Product < APIResource
    extend Stripe::APIOperations::List
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Update
    include Stripe::APIOperations::Delete

    # 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

5 entries across 5 versions & 1 rubygems

Version Path
stripe-1.36.1 lib/stripe/product.rb
stripe-1.36.0 lib/stripe/product.rb
stripe-1.35.1 lib/stripe/product.rb
stripe-1.35.0 lib/stripe/product.rb
stripe-1.34.0 lib/stripe/product.rb