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
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def accepted @accepted end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def changes @changes end |
#discrepancies ⇒ Object (readonly)
Returns the value of attribute discrepancies
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def discrepancies @discrepancies end |
#failed_sources ⇒ Object (readonly)
Returns the value of attribute failed_sources
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def failed_sources @failed_sources end |
#flagged ⇒ Object (readonly)
Returns the value of attribute flagged
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def flagged @flagged end |
#orphaned_models ⇒ Object (readonly)
Returns the value of attribute orphaned_models
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def orphaned_models @orphaned_models end |
#path ⇒ Object (readonly)
Returns the value of attribute path
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def path @path end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def registry @registry end |
#rejected ⇒ Object (readonly)
Returns the value of attribute rejected
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def rejected @rejected end |
#source_results ⇒ Object (readonly)
Returns the value of attribute source_results
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def source_results @source_results end |
#sources_used ⇒ Object (readonly)
Returns the value of attribute sources_used
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def sources_used @sources_used end |
#updated_registry ⇒ Object (readonly)
Returns the value of attribute updated_registry
46 47 48 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 46 def updated_registry @updated_registry end |
Instance Method Details
#refresh_succeeded? ⇒ Boolean
60 61 62 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 60 def refresh_succeeded? source_results.any? { |_source, result| result.prices.any? } end |
#up_to_date? ⇒ Boolean
64 65 66 |
# File 'lib/llm_cost_tracker/price_sync.rb', line 64 def up_to_date? changes.empty? && failed_sources.empty? && rejected.empty? end |