class RubyLLM::Model::PricingTier
Stores non-zero pricing values for a single pricing tier.
Constants
- ATTRIBUTES
Public Class Methods
Source
# File lib/ruby_llm/model/pricing_tier.rb, line 17 def initialize(data = {}) @values = {} data.each do |key, value| @values[key.to_sym] = value if value && value != 0.0 end end
Public Instance Methods
Source
# File lib/ruby_llm/model/pricing_tier.rb, line 35 def [](key) @values[key.to_sym] end