Module: Payjp::APIOperations::Update
- Defined in:
- lib/payjp/api_operations/update.rb
Instance Method Summary collapse
Instance Method Details
#save(params = {}, opts = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/payjp/api_operations/update.rb', line 4 def save(params = {}, opts = {}) values = self.class.serialize_params(self).merge(params) if values.length > 0 values.delete(:id) response, opts = request(:post, url, values, opts) refresh_from(response, opts) end self end |