lib/foursquare2.rb in foursquare2-1.8.2 vs lib/foursquare2.rb in foursquare2-1.9.0

- old
+ new

@@ -4,17 +4,26 @@ directory = File.expand_path(File.dirname(__FILE__)) module Foursquare2 class << self + FIELDS = [ :client_id, :client_secret, :api_version, + :ssl, :connection_middleware, :locale ] + attr_accessor(*FIELDS) + def filter tips, term tip = [] unless tips.nil? tips.items.each do |check_tip| tip << check_tip if check_tip.text.downcase.include? term.downcase end end Hashie::Mash.new({:count => tip.count, :items => tip }) + end + + def configure + yield self + true end end require 'foursquare2/campaigns'