Class: Underpass::Configuration
- Inherits:
-
Object
- Object
- Underpass::Configuration
- Defined in:
- lib/underpass/configuration.rb
Overview
Stores configuration options for the Underpass library.
Instance Attribute Summary collapse
-
#api_endpoint ⇒ String
The Overpass API endpoint URL.
-
#timeout ⇒ Integer
The query timeout in seconds.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 |
# File 'lib/underpass/configuration.rb', line 18 def initialize @api_endpoint = 'https://overpass-api.de/api/interpreter' @timeout = 25 end |
Instance Attribute Details
#api_endpoint ⇒ String
Returns the Overpass API endpoint URL.
13 14 15 |
# File 'lib/underpass/configuration.rb', line 13 def api_endpoint @api_endpoint end |
#timeout ⇒ Integer
Returns the query timeout in seconds.
16 17 18 |
# File 'lib/underpass/configuration.rb', line 16 def timeout @timeout end |