Sha256: 4071265108699e786b90076bd1d654915d2db251bd9258d01cdb8c108282544b

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

module Paid
  module APIOperations
    module Create
      module ClassMethods
        def create(params={}, opts={})
          api_key, headers = Util.parse_opts(opts)
          response, api_key = Paid.request(:post, self.api_url, api_key, params, headers)
          Util.convert_to_paid_object(response, api_key)
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
paid-0.1.0 lib/paid/api_operations/create.rb
paid-0.0.8 lib/paid/api_operations/create.rb
paid-0.0.7 lib/paid/api_operations/create.rb
paid-0.0.6 lib/paid/api_operations/create.rb
paid-0.0.5 lib/paid/api_operations/create.rb
paid-0.0.4 lib/paid/api_operations/create.rb