Class: Nevzorov
- Inherits:
-
Thor
- Object
- Thor
- Nevzorov
- Extended by:
- Dry::Configurable
- Defined in:
- lib/nevzorov.rb,
lib/nevzorov/version.rb,
lib/nevzorov/generator.rb
Overview
CLI interface for generation podcast feed
Defined Under Namespace
Classes: Generator
Constant Summary collapse
- VERSION =
'0.2.0'.freeze
Instance Method Summary collapse
-
#podcast(file) ⇒ Object
rubocop:disable Metrics/AbcSize.
Instance Method Details
#podcast(file) ⇒ Object
rubocop:disable Metrics/AbcSize
22 23 24 25 26 27 |
# File 'lib/nevzorov.rb', line 22 def podcast(file) # rubocop:disable Metrics/AbcSize url = .fetch(:url, self.class.config.url) image = .fetch(:image, self.class.config.image) categories = .fetch(:categories, self.class.config.categories) Generator.call(url, image, categories, file) end |