Sha256: 6b710c272c59035a70397c8f2f26550a128809f16916f367d740f86d64c1e258
Contents?: true
Size: 474 Bytes
Versions: 4
Compression:
Stored size: 474 Bytes
Contents
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 def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems