Class: LlmCostTracker::Pricing::EffectivePriceSet
- Inherits:
-
Data
- Object
- Data
- LlmCostTracker::Pricing::EffectivePriceSet
- Defined in:
- lib/llm_cost_tracker/pricing/effective_prices.rb
Instance Attribute Summary collapse
-
#cache_read_input ⇒ Object
readonly
Returns the value of attribute cache_read_input.
-
#cache_write_input ⇒ Object
readonly
Returns the value of attribute cache_write_input.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
Instance Attribute Details
#cache_read_input ⇒ Object (readonly)
Returns the value of attribute cache_read_input
5 6 7 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 5 def cache_read_input @cache_read_input end |
#cache_write_input ⇒ Object (readonly)
Returns the value of attribute cache_write_input
5 6 7 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 5 def cache_write_input @cache_write_input end |
#input ⇒ Object (readonly)
Returns the value of attribute input
5 6 7 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 5 def input @input end |
#output ⇒ Object (readonly)
Returns the value of attribute output
5 6 7 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 5 def output @output end |
Instance Method Details
#complete? ⇒ Boolean
15 16 17 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 15 def complete? missing_keys.empty? end |
#missing_keys ⇒ Object
19 20 21 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 19 def missing_keys to_h.filter_map { |key, value| key if value.nil? } end |
#to_h ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/llm_cost_tracker/pricing/effective_prices.rb', line 6 def to_h { input: input, cache_read_input: cache_read_input, cache_write_input: cache_write_input, output: output } end |