lib/conekta/operations/update.rb in conekta-0.4.4 vs lib/conekta/operations/update.rb in conekta-0.4.5
- old
+ new
@@ -1,11 +1,9 @@
module Conekta
module Operations
module Update
def update(params)
- requestor = Requestor.new
- url = self.url
- response = requestor.request(:put, url, params)
+ response = Requestor.new.request(:put, self.url, params)
self.load_from(response)
self
end
end
end