lib/paymill/operations/update.rb in paymill-0.2.2 vs lib/paymill/operations/update.rb in paymill-0.3.0
- old
+ new
@@ -1,7 +1,10 @@
module Paymill
module Operations
module Update
+ # Updates a object
+ #
+ # @param [Hash] attributes The attributes that should be updated
def update_attributes(attributes)
response = Paymill.request(:put, "#{self.class.name.split("::").last.downcase}s/#{id}", attributes)
set_attributes(response["data"])
end
end