Class: Copilot::ModelBilling
- Inherits:
-
Struct
- Object
- Struct
- Copilot::ModelBilling
- Defined in:
- lib/copilot/types.rb
Overview
Model billing information.
Instance Attribute Summary collapse
-
#multiplier ⇒ Object
Returns the value of attribute multiplier.
-
#picker_price_category ⇒ Object
Returns the value of attribute picker_price_category.
-
#token_prices ⇒ Object
Returns the value of attribute token_prices.
Class Method Summary collapse
Instance Attribute Details
#multiplier ⇒ Object
Returns the value of attribute multiplier
663 664 665 |
# File 'lib/copilot/types.rb', line 663 def multiplier @multiplier end |
#picker_price_category ⇒ Object
Returns the value of attribute picker_price_category
663 664 665 |
# File 'lib/copilot/types.rb', line 663 def picker_price_category @picker_price_category end |
#token_prices ⇒ Object
Returns the value of attribute token_prices
663 664 665 |
# File 'lib/copilot/types.rb', line 663 def token_prices @token_prices end |
Class Method Details
.from_hash(h) ⇒ Object
664 665 666 667 668 669 670 |
# File 'lib/copilot/types.rb', line 664 def self.from_hash(h) new( multiplier: h["multiplier"], token_prices: h["tokenPrices"] ? ModelBillingTokenPrices.from_hash(h["tokenPrices"]) : nil, picker_price_category: h["pickerPriceCategory"] ) end |