This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'twitter' | |
Twitter::Search.new.geocode(39.037, -94.5874, '5mi').fetch().results | |
#=> all tweets within 5 miles of lat/lon | |
Twitter::Search.geocode(39.037, -94.5874, '5mi').fetch().results.first | |
#=> most recent tweet within 5 miles of lat/lon | |
Twitter::Search.new('dinner').geocode(39.037, -94.5874, '5mi').fetch().results | |
#=> all tweets containing the word 'dinner' within 5 miles of lat/lon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ModMachine | |
extend ActiveSupport::Concern | |
included do | |
end | |
module ClassMethods | |
# | |
# Builds a module with constants assigned to the index passed in the `options` array. Be sure | |
# to pass all arguments as you would write them manually. In other words `attribute` and any |
NewerOlder