Sha256: 43482f4375eed2b81953802eb82cdff5adfc4a34b1fa8e57cc864f55af6461c3

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paysio-1.0.0 lib/paysio/api_operations/create.rb