Class: Sitemaps::Configuration
- Inherits:
-
Object
- Object
- Sitemaps::Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#dump_dir ⇒ Object
readonly
Returns the value of attribute dump_dir.
-
#generator ⇒ Object
readonly
Returns the value of attribute generator.
-
#generator_port ⇒ Object
readonly
Returns the value of attribute generator_port.
-
#generator_timeout ⇒ Object
readonly
Returns the value of attribute generator_timeout.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Instance Method Summary collapse
-
#initialize(yaml_file) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(yaml_file) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/configuration.rb', line 7 def initialize(yaml_file) @yaml_file = yaml_file validate! end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
5 6 7 |
# File 'lib/configuration.rb', line 5 def domain @domain end |
#dump_dir ⇒ Object (readonly)
Returns the value of attribute dump_dir.
5 6 7 |
# File 'lib/configuration.rb', line 5 def dump_dir @dump_dir end |
#generator ⇒ Object (readonly)
Returns the value of attribute generator.
5 6 7 |
# File 'lib/configuration.rb', line 5 def generator @generator end |
#generator_port ⇒ Object (readonly)
Returns the value of attribute generator_port.
5 6 7 |
# File 'lib/configuration.rb', line 5 def generator_port @generator_port end |
#generator_timeout ⇒ Object (readonly)
Returns the value of attribute generator_timeout.
5 6 7 |
# File 'lib/configuration.rb', line 5 def generator_timeout @generator_timeout end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
5 6 7 |
# File 'lib/configuration.rb', line 5 def targets @targets end |