Class: Summarize::Configuration
- Inherits:
-
Object
- Object
- Summarize::Configuration
- Defined in:
- lib/summarize/configuration.rb
Instance Attribute Summary collapse
- #binary_path ⇒ Object
-
#default_cli ⇒ Object
Returns the value of attribute default_cli.
-
#default_language ⇒ Object
Returns the value of attribute default_language.
-
#default_length ⇒ Object
Returns the value of attribute default_length.
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#env ⇒ Object
Returns the value of attribute env.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#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.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/summarize/configuration.rb', line 9 def initialize @binary_path = nil @default_model = "auto" @default_cli = nil @default_length = nil @default_language = nil @timeout = nil @retries = nil @env = {} end |
Instance Attribute Details
#binary_path ⇒ Object
20 21 22 |
# File 'lib/summarize/configuration.rb', line 20 def binary_path @binary_path ||= find_binary end |
#default_cli ⇒ Object
Returns the value of attribute default_cli.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def default_cli @default_cli end |
#default_language ⇒ Object
Returns the value of attribute default_language.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def default_language @default_language end |
#default_length ⇒ Object
Returns the value of attribute default_length.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def default_length @default_length end |
#default_model ⇒ Object
Returns the value of attribute default_model.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def default_model @default_model end |
#env ⇒ Object
Returns the value of attribute env.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def env @env end |
#retries ⇒ Object
Returns the value of attribute retries.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def retries @retries end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def timeout @timeout end |