Class: Adzerk::Publisher
- Inherits:
-
ApiEndpoint
- Object
- ApiEndpoint
- Adzerk::Publisher
- Defined in:
- lib/adzerk/publisher.rb
Instance Attribute Summary
Attributes inherited from ApiEndpoint
#client, #datakey, #endpoint, #subendpoint
Instance Method Summary collapse
Methods inherited from ApiEndpoint
#create, #delete, #get, #initialize, #list, #update
Methods included from Util
#camelize_data, #parse_response, #uncamelize_data
Constructor Details
This class inherits a constructor from Adzerk::ApiEndpoint
Instance Method Details
#earnings(data = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/adzerk/publisher.rb', line 4 def earnings(data={}) data = { 'earnings' => camelize_data(data).to_json } response = @client.post_request('/earnings', data) parse_response(response) end |
#payments(data = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/adzerk/publisher.rb', line 10 def payments(data={}) data = { 'payments' => camelize_data(data).to_json } response = @client.post_request('/payments', data) parse_response(response) end |