diff options
author | mms <git@sapka.me> | 2025-01-09 22:53:46 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2025-01-09 22:53:46 +0100 |
commit | 27a14097e6705f6665e8fe5a7a4ca078799f3647 (patch) | |
tree | e6e7063071d8b369b829cb2461e9aa1ef84204e4 /new/userfriendly/pages/index.xml.rb | |
parent | edb8b8b15c2c7963daa453b0fa1753aad37ee1f4 (diff) |
Diffstat (limited to 'new/userfriendly/pages/index.xml.rb')
-rw-r--r-- | new/userfriendly/pages/index.xml.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/new/userfriendly/pages/index.xml.rb b/new/userfriendly/pages/index.xml.rb new file mode 100644 index 00000000..01edf785 --- /dev/null +++ b/new/userfriendly/pages/index.xml.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true + +module Crys + module Splash + module Page + class IndexRss + include CommonFunctions + def initialize(processor:) + @main_rss = fetch_rss(name: :main) + @processor = processor + end + + def content + main_rss + end + + def filename + 'index.xml' + end + + private + + attr_reader :main_rss + end + end + end +end + +@rss = Crys::Splash::Page::IndexRss.new(processor: self) |