module FoursquareNext

Constants

FIELDS

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/foursquare_next.rb, line 20
def configure
  yield self
  true
end
filter(tips, term) click to toggle source
# File lib/foursquare_next.rb, line 12
def filter(tips, term)
  tip = []
  tips&.items&.each do |check_tip|
    tip << check_tip if check_tip.text.downcase.include? term.downcase
  end
  HashWrapper.new(count: tip.count, items: tip)
end