class AppEarnings::Cli
Command-line utility: Retrieves CSV file and generates a report based into it.
Public Instance Methods
amazon(payments, earnings)
click to toggle source
# File lib/app_earnings/cli.rb, line 23 def amazon(payments, earnings) if File.exists?(payments) && File.exists?(earnings) AppEarnings.amazon_report(payments, earnings, options[:format]) else puts "Files '#{payments}' and '#{earnings}' were not found!" end end
play(name)
click to toggle source
# File lib/app_earnings/cli.rb, line 11 def play(name) if File.exists?(name) AppEarnings.play_report(name, options[:format]) else puts "File '#{name}' not found!" end end