lib/paymill/operations/create.rb in paymill-0.2.2 vs lib/paymill/operations/create.rb in paymill-0.3.0

- old
+ new

@@ -1,9 +1,12 @@ module Paymill module Operations module Create module ClassMethods + # Creates a new object + # + # @param [Hash] attributes The attributes of the created object def create(attributes) response = Paymill.request(:post, "#{self.name.split("::").last.downcase}s", attributes) self.new(response["data"]) end end @@ -11,6 +14,6 @@ def self.included(base) base.extend(ClassMethods) end end end -end \ No newline at end of file +end