Class: Msewage::Importer::Config
- Inherits:
-
Object
- Object
- Msewage::Importer::Config
- Defined in:
- lib/msewage-importer/config.rb
Instance Method Summary collapse
- #api_endpoint ⇒ Object
-
#initialize(options) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options) ⇒ Config
Returns a new instance of Config.
6 7 8 9 |
# File 'lib/msewage-importer/config.rb', line 6 def initialize() setup_config() validate_config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object (private)
62 63 64 65 |
# File 'lib/msewage-importer/config.rb', line 62 def method_missing(meth, *args, &block) return config[meth.to_s] if config.has_key?(meth.to_s) super end |
Instance Method Details
#api_endpoint ⇒ Object
11 12 13 |
# File 'lib/msewage-importer/config.rb', line 11 def api_endpoint API_ENDPOINT end |