Class: Contai::Configuration
- Inherits:
-
Object
- Object
- Contai::Configuration
- Defined in:
- lib/contai/configuration.rb
Instance Attribute Summary collapse
-
#default_headers ⇒ Object
Returns the value of attribute default_headers.
-
#default_provider ⇒ Object
Returns the value of attribute default_provider.
-
#default_template ⇒ Object
Returns the value of attribute default_template.
-
#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 9 10 |
# File 'lib/contai/configuration.rb', line 5 def initialize @default_provider = :http @default_template = "Generate content based on: {{prompt}}" @timeout = 30 @default_headers = { "Content-Type" => "application/json" } end |
Instance Attribute Details
#default_headers ⇒ Object
Returns the value of attribute default_headers.
3 4 5 |
# File 'lib/contai/configuration.rb', line 3 def default_headers @default_headers end |
#default_provider ⇒ Object
Returns the value of attribute default_provider.
3 4 5 |
# File 'lib/contai/configuration.rb', line 3 def default_provider @default_provider end |
#default_template ⇒ Object
Returns the value of attribute default_template.
3 4 5 |
# File 'lib/contai/configuration.rb', line 3 def default_template @default_template end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/contai/configuration.rb', line 3 def timeout @timeout end |