Sha256: 0fb11016144860f58281be0ae14a01f9dfe10f11acc490bc969f3b9341648cd6

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

module Conekta
  module APIOperations
    module Create
      module ClassMethods
        def create(params={}, api_key=nil)
          response, api_key = Conekta.request(:post, self.url, api_key, params)
          Util.convert_to_conekta_object(response, api_key)
        end
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conekta-0.3.3 lib/conekta/api_operations/create.rb
conekta-0.3.1 lib/conekta/api_operations/create.rb
conekta-0.3.0 lib/conekta/api_operations/create.rb