module AppEarnings

Process Monthly Earnings report From GoogleApps or Amazon transaction CSV file into a report by Application and IAP

Public Class Methods

amazon_report(payments, earnings, format = 'text') click to toggle source
# File lib/app_earnings.rb, line 15
def self.amazon_report(payments, earnings, format = 'text')
  parsed = []
  parsed << Amazon::Parser.new(payments).extract
  parsed << Amazon::Parser.new(earnings).extract
  Amazon::Reporter.new(parsed).report_as(format)
end
play_report(name, format = 'text') click to toggle source
# File lib/app_earnings.rb, line 10
def self.play_report(name, format = 'text')
  parsed = GooglePlay::Parser.new(name).extract
  GooglePlay::Reporter.new(parsed).report_as(format)
end