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 # DEPRECATED: Please use where instead. alias_method :all, :where end def self.included(base) base.extend(ClassMethods) end end end end