Class: RubyOpenrouter::Configuration
- Inherits:
-
Object
- Object
- RubyOpenrouter::Configuration
- Defined in:
- lib/ruby_openrouter/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.
-
#site_name ⇒ Object
Returns the value of attribute site_name.
-
#site_url ⇒ Object
Returns the value of attribute site_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.
5 6 7 8 |
# File 'lib/ruby_openrouter/configuration.rb', line 5 def initialize @base_url = "https://openrouter.ai/api/v1" @timeout = 30 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/ruby_openrouter/configuration.rb', line 3 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
3 4 5 |
# File 'lib/ruby_openrouter/configuration.rb', line 3 def base_url @base_url end |
#site_name ⇒ Object
Returns the value of attribute site_name.
3 4 5 |
# File 'lib/ruby_openrouter/configuration.rb', line 3 def site_name @site_name end |
#site_url ⇒ Object
Returns the value of attribute site_url.
3 4 5 |
# File 'lib/ruby_openrouter/configuration.rb', line 3 def site_url @site_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/ruby_openrouter/configuration.rb', line 3 def timeout @timeout end |