Module: Configuration
- Included in:
- NASA
- Defined in:
- lib/nasa/utils/configuration.rb
Overview
Base configuration for the gem
Instance Attribute Summary collapse
- #api_key ⇒ String
-
#debug ⇒ Boolean
Can be set from NASA namespace.
Instance Method Summary collapse
-
#configure {|config| ... } ⇒ Object
Configures the gem.
Instance Attribute Details
#api_key ⇒ String
20 21 22 |
# File 'lib/nasa/utils/configuration.rb', line 20 def api_key @api_key ||= ENV['nasa_api_key'] || nil end |
#debug ⇒ Boolean
Returns Can be set from NASA namespace
26 27 28 |
# File 'lib/nasa/utils/configuration.rb', line 26 def debug @debug ||= nil end |
Instance Method Details
#configure {|config| ... } ⇒ Object
Configures the gem
15 16 17 |
# File 'lib/nasa/utils/configuration.rb', line 15 def configure yield self end |