summaryrefslogtreecommitdiff
path: root/new/splash/pages/index.xml.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2025-01-06 22:17:43 +0100
committermms <git@sapka.me>2025-01-06 22:17:43 +0100
commitb50e4a5f40bc64fa1893d249d83c05ecd217de1d (patch)
treed98b5c3a378975d095aa3dad8d1a642c3cf0f3d2 /new/splash/pages/index.xml.rb
parentbfd8209ad0d80b5027bea8a1a095dadc8bffdc61 (diff)
feat(new): rss + batch
Diffstat (limited to 'new/splash/pages/index.xml.rb')
-rw-r--r--new/splash/pages/index.xml.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/new/splash/pages/index.xml.rb b/new/splash/pages/index.xml.rb
new file mode 100644
index 00000000..309cb005
--- /dev/null
+++ b/new/splash/pages/index.xml.rb
@@ -0,0 +1,29 @@
+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)