Module: Stripe::APIOperations::Update
- Included in:
- Charge, Customer, Invoice, InvoiceItem, Plan
- Defined in:
- lib/stripe/api_operations/update.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) save
4 5 6 7 8 9 10 11 12 |
# File 'lib/stripe/api_operations/update.rb', line 4 def save if @unsaved_values.length > 0 values = {} @unsaved_values.each { |k| values[k] = @values[k] } response, api_key = Stripe.request(:post, url, @api_key, values) refresh_from(response, api_key) end self end |