lib/chargify/chargify_report_generator.rb
Method fetch_data
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def fetch_data
@products = Chargify::Product.all
@transactions = []
per_page = 20
params = {since_date: @start_date.to_s, until_date: @end_date.to_s, per_page: per_page, page: 1}