Sha256: aaf3312b45e1277765c85f220111d222385cb15d589b885489ef0e6119b7f723

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

module Conekta
  module Operations
    module Where
      module ClassMethods
        def where(params=nil)
          instance = ConektaObject.new
          _url = Util.types[self.class_name.downcase]._url
          response = Requestor.new.request(:get, _url, params)
          instance.load_from(response)
          instance
        end

        # <b>DEPRECATED:</b> Please use <tt>where</tt> instead.
        alias_method :all, :where
      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-1.0.0 lib/conekta/operations/where.rb
conekta-0.5.8 lib/conekta/operations/where.rb
conekta-0.5.7 lib/conekta/operations/where.rb