Sha256: 3596d5d738f7f04b469c04923f8ac8c2b4fecc9054a8ce5401206f59ff41a945

Contents?: true

Size: 536 Bytes

Versions: 10

Compression:

Stored size: 536 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

10 entries across 10 versions & 1 rubygems

Version Path
conekta-0.5.6 lib/conekta/operations/where.rb
conekta-0.5.5 lib/conekta/operations/where.rb
conekta-0.5.4 lib/conekta/operations/where.rb
conekta-0.5.3 lib/conekta/operations/where.rb
conekta-0.5.2 lib/conekta/operations/where.rb
conekta-0.5.1 lib/conekta/operations/where.rb
conekta-0.4.8 lib/conekta/operations/where.rb
conekta-0.4.7 lib/conekta/operations/where.rb
conekta-0.4.6 lib/conekta/operations/where.rb
conekta-0.4.5 lib/conekta/operations/where.rb