Class: Tana::Configuration::Loader
- Inherits:
-
Object
- Object
- Tana::Configuration::Loader
- Defined in:
- lib/tana/configuration/loader.rb
Overview
Handles loading of configuration with environment defaults.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(model = Content, environment: ENV) ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/tana/configuration/loader.rb', line 12 def call model[ accept: environment.fetch("TANA_API_ACCEPT", "application/json"), token: environment["TANA_API_TOKEN"], url: environment.fetch("TANA_API_URL", "https://europe-west1-tagr-prod.cloudfunctions.net") ] end |