Sha256: d0f9098e8ecdff96558cc79bd7fa0a607b44f5d1e92173127a6870da39e4505c

Contents?: true

Size: 431 Bytes

Versions: 14

Compression:

Stored size: 431 Bytes

Contents

module Conekta
  module Operations
    module Create
      module ClassMethods
        def create(params)
          _url = Util.types[self.class_name.downcase]._url
          response = Requestor.new.request(:post, _url, params)
          instance = self.new
          instance.load_from(response)
          instance
        end
      end
      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
conekta-2.6.0 lib/conekta/operations/create.rb
conekta-2.5.0 lib/conekta/operations/create.rb
conekta-2.4.2 lib/conekta/operations/create.rb
conekta-2.4.1 lib/conekta/operations/create.rb
conekta-2.4.0 lib/conekta/operations/create.rb
conekta-2.3.0 lib/conekta/operations/create.rb
conekta-2.0.0 lib/conekta/operations/create.rb
conekta-1.1.3 lib/conekta/operations/create.rb
conekta-1.1.2 lib/conekta/operations/create.rb
conekta-1.1.1 lib/conekta/operations/create.rb
conekta-1.1.0 lib/conekta/operations/create.rb
conekta-1.0.0 lib/conekta/operations/create.rb
conekta-0.5.8 lib/conekta/operations/create.rb
conekta-0.5.7 lib/conekta/operations/create.rb