Method: Html2rss::Config#initialize
- Defined in:
- lib/html2rss/config.rb
permalink #initialize(feed_config, global = {}, params = {}) ⇒ Config
Initializes the Config object with feed configuration, global settings, and parameters.
45 46 47 48 49 50 51 52 |
# File 'lib/html2rss/config.rb', line 45 def initialize(feed_config, global = {}, params = {}) channel_config = feed_config[:channel] raise ChannelMissing, 'Channel configuration is missing in feed_config' unless channel_config @channel = Channel.new(channel_config, params:) @selectors = Selectors.new(feed_config[:selectors]) @global = global end |