Class: Twitterland::Thumbfight
- Inherits:
-
Object
- Object
- Twitterland::Thumbfight
- Includes:
- HTTParty
- Defined in:
- lib/twitterland/thumbfight.rb
Class Method Summary (collapse)
-
+ (Object) fight(*args)
Get Thumbfight analysis for 1 or 2 search terms.
Class Method Details
+ (Object) fight(*args)
Get Thumbfight analysis for 1 or 2 search terms
Twitterland::Thumbfight.fight(args)
10 11 12 13 14 15 |
# File 'lib/twitterland/thumbfight.rb', line 10 def self.fight(*args) params = {} params[:challenger1] = args[0] if args[0] params[:challenger2] = args[1] if args[1] Hashie::Mash.new get("/fight.json", :query => params) end |