summaryrefslogtreecommitdiff
path: root/new/splash/pages/index.xml.rb
blob: 73606d0beab75395ad408f581cfd4beac88b2c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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)