module CurrencyCloud::Actions::Save
Public Instance Methods
Source
# File lib/currency_cloud/actions/save.rb, line 4 def save return self if changed_attributes.empty? params = attributes.select { |attr| changed_attributes.include?(attr) } attrs = client.post(id, params) changed_attributes.clear self.attributes = attrs self end