# File lib/chart-candy/builder/base.rb, line 22 def filename name = [title.parameterize] name << @from.strftime('%Y%m%d') if @from name << @to.strftime('%Y%m%d') if @to name = name.compact.join('-') "#{name}.xls" end