diff options
Diffstat (limited to 'new/lib/crys/processors/rss_processor.rb')
-rw-r--r-- | new/lib/crys/processors/rss_processor.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/new/lib/crys/processors/rss_processor.rb b/new/lib/crys/processors/rss_processor.rb index de79f11b..4806c594 100644 --- a/new/lib/crys/processors/rss_processor.rb +++ b/new/lib/crys/processors/rss_processor.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true -require_relative 'common_functions' -require_relative 'common_parts' +require_relative 'mixins/common_functions' +require_relative 'mixins/common_parts' module Crys class RssProcessor @@ -13,8 +13,13 @@ module Crys @image_dir = image_dir # just for api consistency end - def parsed_content - rss.content + def parsed_pages + [ + ProcessedPage.new( + filename: rss.filename, + content: rss.content + ) + ] end def filename |