summaryrefslogtreecommitdiff
path: root/new/lib/crys/processors/rss_processor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'new/lib/crys/processors/rss_processor.rb')
-rw-r--r--new/lib/crys/processors/rss_processor.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/new/lib/crys/processors/rss_processor.rb b/new/lib/crys/processors/rss_processor.rb
new file mode 100644
index 00000000..bce48ad6
--- /dev/null
+++ b/new/lib/crys/processors/rss_processor.rb
@@ -0,0 +1,28 @@
+require_relative "common_functions"
+require_relative "common_parts"
+
+module Crys
+ class RssProcessor
+ def initialize(file_path:, image_dir:)
+ @file_path = file_path
+ rss_file = File.read(file_path)
+ instance_eval(rss_file)
+ @assets = []
+ end
+
+ def parsed_content
+ rss.content
+ end
+
+ def filename
+ rss.filename
+ end
+
+ attr_reader :assets, :file_path
+
+ private
+
+ attr_reader :rss
+
+ end
+end