summaryrefslogtreecommitdiff
path: root/new/splash/pages/index.xml.rb
blob: 01edf785042b823c5669a8f08e2c2347cad2b592 (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
# 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)