Class: Nevzorov

Inherits:
Thor
  • Object
show all
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

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 = options.fetch(:url, self.class.config.url)
  image = options.fetch(:image, self.class.config.image)
  categories = options.fetch(:categories, self.class.config.categories)
  Generator.call(url, image, categories, file)
end