Class: Twitterland::Thumbfight

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/twitterland/thumbfight.rb

Class Method Summary collapse

Class Method Details

.fight(*args) ⇒ Object

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