Sha256: b724b763ac4ad4fc0f2347c48799e4df82f53494ad09bcfa93f4a955b8fe9f68
Contents?: true
Size: 406 Bytes
Versions: 4
Compression:
Stored size: 406 Bytes
Contents
require 'json' module Bowshock module Asterank def asterank(object) base_url = "http://www.asterank.com/api/asterank?" if object["query"] base_url += "query=#{object["query"].to_json.to_s}&" end if object["limit"] base_url += "limit=#{object["limit"].to_s}" end Helpers.getJson(base_url, 'GET') end module_function :asterank end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bowshock-0.1.3 | lib/bowshock/asterank.rb |
bowshock-0.1.2 | lib/bowshock/asterank.rb |
bowshock-0.1.1 | lib/bowshock/asterank.rb |
bowshock-0.1.0 | lib/bowshock/asterank.rb |