struct

Planeta::Config

Inherits Struct < Value < Object

Configuration struct for centralized application settings

This struct manages all configuration options with validation and default values. Configuration can be provided via environment variables or CLI options.

Constructors

new

Initializes configuration from environment variables with defaults

Source

Instance methods

cache_dir

Directory for storing cached feed data

Source
cache_dir=(cache_dir : String)

Directory for storing cached feed data

Source
cache_duration_minutes

How long to cache feed data in minutes

Source
cache_duration_minutes=(cache_duration_minutes : Int32)

How long to cache feed data in minutes

Source
host

Server host to bind to

Source
host=(host : String)

Server host to bind to

Source
log_level

Logging verbosity level

Source
log_level=(log_level : LogLevel)

Logging verbosity level

Source
port

Server port to listen on

Source
port=(port : Int32)

Server port to listen on

Source
summary_length

Maximum length of summary text for display

Source
summary_length=(summary_length : Int32)

Maximum length of summary text for display

Source
title

Title displayed in the header and feeds

Source
title=(title : String)

Title displayed in the header and feeds

Source
urls_file

Path to file containing feed URLs (one per line)

Source
urls_file=(urls_file : String)

Path to file containing feed URLs (one per line)

Source
validate!

Validates configuration and raises errors for invalid values

Source