Class: VoiceNotes::Configuration
- Inherits:
-
Object
- Object
- VoiceNotes::Configuration
- Defined in:
- lib/voice_notes/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/voice_notes/configuration.rb', line 7 def initialize @api_key = ENV.fetch("VOICE_NOTES_API_KEY", nil) @base_url = ENV.fetch("VOICE_NOTES_BASE_URL", "https://voice-notes.online") @timeout = 30 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/voice_notes/configuration.rb', line 5 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/voice_notes/configuration.rb', line 5 def base_url @base_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/voice_notes/configuration.rb', line 5 def timeout @timeout end |