Class: LlmCostTracker::PriceSync::RefreshPlan
- Inherits:
-
Data
- Object
- Data
- LlmCostTracker::PriceSync::RefreshPlan
- Defined in:
- lib/llm_cost_tracker/price_sync.rb
Instance Attribute Summary collapse
-
#accepted ⇒ Object
readonly
Returns the value of attribute accepted.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#discrepancies ⇒ Object
readonly
Returns the value of attribute discrepancies.
-
#failed_sources ⇒ Object
readonly
Returns the value of attribute failed_sources.
-
#flagged ⇒ Object
readonly
Returns the value of attribute flagged.
-
#orphaned_models ⇒ Object
readonly
Returns the value of attribute orphaned_models.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
-
#rejected ⇒ Object
readonly
Returns the value of attribute rejected.
-
#source_results ⇒ Object
readonly
Returns the value of attribute source_results.
-
#sources_used ⇒ Object
readonly
Returns the value of attribute sources_used.
-
#updated_registry ⇒ Object
readonly
Returns the value of attribute updated_registry.
Instance Method Summary collapse
Instance Attribute Details
#accepted ⇒ Object (readonly)
Returns the value of attribute accepted
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def accepted @accepted end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def changes @changes end |
#discrepancies ⇒ Object (readonly)
Returns the value of attribute discrepancies
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def discrepancies @discrepancies end |
#failed_sources ⇒ Object (readonly)
Returns the value of attribute failed_sources
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def failed_sources @failed_sources end |
#flagged ⇒ Object (readonly)
Returns the value of attribute flagged
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def flagged @flagged end |
#orphaned_models ⇒ Object (readonly)
Returns the value of attribute orphaned_models
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def orphaned_models @orphaned_models end |
#path ⇒ Object (readonly)
Returns the value of attribute path
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def path @path end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def registry @registry end |
#rejected ⇒ Object (readonly)
Returns the value of attribute rejected
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def rejected @rejected end |
#source_results ⇒ Object (readonly)
Returns the value of attribute source_results
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def source_results @source_results end |
#sources_used ⇒ Object (readonly)
Returns the value of attribute sources_used
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def sources_used @sources_used end |
#updated_registry ⇒ Object (readonly)
Returns the value of attribute updated_registry
48 49 50 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 48 def updated_registry @updated_registry end |
Instance Method Details
#refresh_succeeded? ⇒ Boolean
62 63 64 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 62 def refresh_succeeded? source_results.any? { |_source, result| result.prices.any? } end |
#up_to_date? ⇒ Boolean
66 67 68 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 66 def up_to_date? changes.empty? && failed_sources.empty? && rejected.empty? end |