class Adzerk::InstantCount
Public Class Methods
new(args={})
click to toggle source
# File lib/adzerk/instant_count.rb, line 5 def initialize(args={}) @client = args[:client] end
Public Instance Methods
bulk(data={})
click to toggle source
# File lib/adzerk/instant_count.rb, line 9 def bulk(data={}) url = "instantcounts/bulk" response = @client.post_json_request(url, data) parse_response(response) end
network_counts(data={})
click to toggle source
# File lib/adzerk/instant_count.rb, line 15 def network_counts(data={}) query_string = URI.encode_www_form(data) url = "instantcounts/network?#{query_string}" parse_response(@client.get_request(url)) end