Class: AppleReporter::Reporter
- Inherits:
-
Object
- Object
- AppleReporter::Reporter
- Defined in:
- lib/apple_reporter/reporter.rb
Constant Summary collapse
- ENDPOINT =
'https://reportingitc-reporter.apple.com/reportservice'
- GZIP_MIMETYPE =
'1f8b0800000000000000'.freeze
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Reporter
constructor
Usage: reporter = Apple::Reporter::Sale.new(user_id: ‘iscreen’, access_token: ‘secret’, account: ‘myAccount’).
Constructor Details
#initialize(config = {}) ⇒ Reporter
Usage: reporter = Apple::Reporter::Sale.new(user_id: ‘iscreen’, access_token: ‘secret’, account: ‘myAccount’)
9 10 11 12 13 14 15 16 |
# File 'lib/apple_reporter/reporter.rb', line 9 def initialize(config = {}) @config = { sales_path: '/sales/v1', finance_path: '/finance/v1', mode: 'Robot.XML', version: '1_0' }.merge(config) end |