Sha256: 45ed8ab5a4555da373a9c52157e2db7fe0e69ffeffefc1ed7af363247caf06ad
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
module Twitterland class Thumbfight include HTTParty base_uri 'thumbfight.com' format :json # Get Thumbfight analysis for 1 or 2 search terms # # Twitterland::Thumbfight.fight(args) 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitterland-0.4.6 | lib/twitterland/thumbfight.rb |