class ContinuousImport::FeedConfig

Overview

Configuration for a single feed

Defined in:

continuous_import.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_any(any) : self #

Load from config (YAML::Any from Totem)


[View source]
def self.new(urls : Array(String), template : String, output_folder : String, format : String = "md", source_extension : Nil | String = nil, lang : String = "en", tags : String = "", skip_titles : Array(String) = [] of String, start_at : Nil | String = nil, metadata : Hash(String, Totem::Any) = {} of String => Totem::Any) #

[View source]

Instance Method Detail

def file_extension : String #

Get the actual file extension to use


[View source]
def format : String #

[View source]
def format=(format : String) #

[View source]
def lang : String #

[View source]
def lang=(lang : String) #

[View source]
def metadata : Hash(String, Totem::Any) #

[View source]
def metadata=(metadata : Hash(String, Totem::Any)) #

[View source]
def output_folder : String #

[View source]
def output_folder=(output_folder : String) #

[View source]
def skip_titles : Array(String) #

[View source]
def skip_titles=(skip_titles : Array(String)) #

[View source]
def source_extension : String | Nil #

[View source]
def source_extension=(source_extension : String | Nil) #

[View source]
def start_at : String | Nil #

[View source]
def start_at=(start_at : String | Nil) #

[View source]
def tags : String #

[View source]
def tags=(tags : String) #

[View source]
def template : String #

[View source]
def template=(template : String) #

[View source]
def urls : Array(String) #

[View source]
def urls=(urls : Array(String)) #

[View source]