Class: Adzerk::InstantCount
- Inherits:
-
Object
- Object
- Adzerk::InstantCount
show all
- Includes:
- Util
- Defined in:
- lib/adzerk/instant_count.rb
Instance Method Summary
collapse
Methods included from Util
#camelize_data, #parse_response, #uncamelize_data
Constructor Details
#initialize(args = {}) ⇒ InstantCount
5
6
7
|
# File 'lib/adzerk/instant_count.rb', line 5
def initialize(args={})
@client = args[:client]
end
|
Instance Method Details
#bulk(data = {}) ⇒ Object
9
10
11
12
13
|
# 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 = {}) ⇒ Object
15
16
17
18
19
|
# 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
|