Sha256: 672974cc24113bfadac51900bc6f7a6cdcb2fcc6c7137643da99293acb682c6a

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

module Conekta
  module APIOperations
    module List
      module ClassMethods
        def all(filters={}, api_key=nil)
          response, api_key = Conekta.request(:get, url, api_key, filters)
          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/list.rb
conekta-0.3.1 lib/conekta/api_operations/list.rb
conekta-0.3.0 lib/conekta/api_operations/list.rb