editions/free.rb
# frozen_string_literal: true
require './editions/morning'
require './editions/afternoon'
module Editions
class Free < Morning
def elements
[
generic_title('Futures', 'Pre-Market Data', formatted_time),
Templates::Element.spacer('20px'),
item_futures(:sp500),
item_futures(:nasdaq),
item_futures(:dowjones),
Templates::Element.divider,
generic_title('Performance'),
sp500_performance,
nasdaq_performance,
dowjones_performance,
bitcoin_performance,
Templates::Element.spacer('20px'),
subscribe_premium
]
end
def subscribe_premium
headline = [
'Crypto, top gainers and losers',
'Sector performance and YTD stats',
'No ads, all time high performance',
'Russell 2k, Gold and 10-Yr Treasury',
'Ad free, trending stocks and more',
'More indicators, afternoon edition',
'Support Bullish 🙏'
].sample
label = [
'Lifetime access for $49 only',
'Lifetime subscription for $49',
'Forever premium for only $49'
].sample
[
Templates::Element.subscribe_premium(headline, label)
]
end
def name
'Free edition'
end
def free_trending
trending(2)
end
def subscribers_group_id
Services::Config.free_group
end
end
end