Class: CityGrid::API::Advertising::Performance

Inherits:
CityGrid::API::Advertising show all
Defined in:
lib/citygrid/api/advertising/performance.rb

Constant Summary

Constants inherited from CityGrid::API

CityGrid::API::AdCenter, DEFAULT_ACTION_OPTIONS, DEFAULT_HEADERS

Class Method Summary collapse

Methods inherited from CityGrid::API

define_action, endpoint, request

Methods included from CityGridExceptions

appropriate_error

Class Method Details

.summary(type, options = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/citygrid/api/advertising/performance.rb', line 6

def summary type, options = {}
  token = extract_auth_token options
  request_and_handle :post,
    "#{endpoint}/#{type}",
    :body    => options.to_json,
    :headers => merge_headers("authToken" => token)
end