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.
-
#skip_version_check ⇒ Object
Returns the value of attribute skip_version_check.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
- #cli_version ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset_cli_version! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/summarize/configuration.rb', line 10 def initialize @binary_path = nil @default_model = "auto" @default_cli = nil @default_length = nil @default_language = nil @timeout = nil @retries = nil @env = {} @skip_version_check = false @cli_version = nil end |
Instance Attribute Details
#binary_path ⇒ Object
23 24 25 |
# File 'lib/summarize/configuration.rb', line 23 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 |
#skip_version_check ⇒ Object
Returns the value of attribute skip_version_check.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def skip_version_check @skip_version_check end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/summarize/configuration.rb', line 5 def timeout @timeout end |
Instance Method Details
#cli_version ⇒ Object
27 28 29 |
# File 'lib/summarize/configuration.rb', line 27 def cli_version @cli_version ||= detect_cli_version end |
#reset_cli_version! ⇒ Object
31 32 33 |
# File 'lib/summarize/configuration.rb', line 31 def reset_cli_version! @cli_version = nil end |