Class: Linkshare::Commission

Inherits:
Base
  • Object
show all
Defined in:
lib/linkshare/commission.rb

Instance Attribute Summary

Attributes inherited from Base

#page_number, #total_matches, #total_pages

Class Method Summary collapse

Methods inherited from Base

base_url, credentials, first, get_service, #initialize, #pass=, raise_if_invalid_response, #user_id=, validate_params!

Constructor Details

This class inherits a constructor from Linkshare::Base

Class Method Details

.find(params = {}) ⇒ Object



8
9
10
11
12
# File 'lib/linkshare/commission.rb', line 8

def find(params = {})
  validate_params!(params, %w{bdate edate eid nid})
  params.merge!('cuserid' => credentials['user_id'], 'cpi' => credentials['pass'])
  get_service(service_url, params)
end

.service_urlObject



4
5
6
# File 'lib/linkshare/commission.rb', line 4

def service_url
  base_url + "cli/publisher/reports/downloadReport.php"
end