Class: Legion::Extensions::Llm::Routing::QuotaDomainKey
- Inherits:
-
Data
- Object
- Data
- Legion::Extensions::Llm::Routing::QuotaDomainKey
- Defined in:
- lib/legion/extensions/llm/routing/records.rb
Overview
A non-secret, provider-scoped quota domain. Equality never crosses provider family. See section 15.2.
Instance Attribute Summary collapse
-
#opaque_id ⇒ Object
readonly
Returns the value of attribute opaque_id.
-
#provider_family ⇒ Object
readonly
Returns the value of attribute provider_family.
Instance Method Summary collapse
-
#initialize(provider_family:, opaque_id:) ⇒ QuotaDomainKey
constructor
A new instance of QuotaDomainKey.
Constructor Details
#initialize(provider_family:, opaque_id:) ⇒ QuotaDomainKey
Returns a new instance of QuotaDomainKey.
36 37 38 39 40 41 42 43 |
# File 'lib/legion/extensions/llm/routing/records.rb', line 36 def initialize(provider_family:, opaque_id:) super( provider_family: Legion::Extensions::Llm::Inventory::RecordSupport.normalize_provider_family( value: provider_family ), opaque_id: Legion::Extensions::Llm::Inventory::Identity.normalize_text(value: opaque_id, field: :opaque_id) ) end |
Instance Attribute Details
#opaque_id ⇒ Object (readonly)
Returns the value of attribute opaque_id
35 36 37 |
# File 'lib/legion/extensions/llm/routing/records.rb', line 35 def opaque_id @opaque_id end |
#provider_family ⇒ Object (readonly)
Returns the value of attribute provider_family
35 36 37 |
# File 'lib/legion/extensions/llm/routing/records.rb', line 35 def provider_family @provider_family end |