def render
      mentions = mentions_erb
      hashtags = hashtags_erb
      smileys = smileys_erb
      clients = clients_erb
      counters = {
        tweets: @parsed[:tweet_count],
        retweets: @parsed[:retweet_count],
        retweets_percentage: (@parsed[:retweet_count] * 100 / @parsed[:tweet_count].to_f).round(2),
        selftweets: @parsed[:selftweet_count],
        selftweets_percentage: (@parsed[:selftweet_count] * 100 / @parsed[:tweet_count].to_f).round(2)
      }
      times_of_day = times_erb
      erb = ERB.new @template
      erb.result binding
    end
def render
      mentions = mentions_erb
      hashtags = hashtags_erb
      smileys = smileys_erb
      clients = clients_erb
      counters = {
        tweets: @parsed[:tweet_count],
        retweets: @parsed[:retweet_count],
        retweets_percentage: (@parsed[:retweet_count] * 100 / @parsed[:tweet_count].to_f).round(2),
        selftweets: @parsed[:selftweet_count],
        selftweets_percentage: (@parsed[:selftweet_count] * 100 / @parsed[:tweet_count].to_f).round(2)
      }
      times_of_day = times_erb
      erb = ERB.new @template
      erb.result binding
    end
Initializes a new TemplateRenderer.

 template: The template to use (i.e. not the file name)
 parsed_tweets: The dict that gets returned by TweetParser::merge_parsed

 Renders @template.