Class: Lipdub::Configuration
- Inherits:
-
Object
- Object
- Lipdub::Configuration
- Defined in:
- lib/lipdub/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.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/lipdub/configuration.rb', line 7 def initialize @base_url = "https://api.lipdub.ai" @timeout = 30 @open_timeout = 10 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/lipdub/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/lipdub/configuration.rb', line 5 def base_url @base_url end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
5 6 7 |
# File 'lib/lipdub/configuration.rb', line 5 def open_timeout @open_timeout end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/lipdub/configuration.rb', line 5 def timeout @timeout end |
Instance Method Details
#valid? ⇒ Boolean
13 14 15 |
# File 'lib/lipdub/configuration.rb', line 13 def valid? !api_key.nil? && !api_key.empty? end |