Class: Copilot::ModelBillingTokenPrices
- Inherits:
-
Struct
- Object
- Struct
- Copilot::ModelBillingTokenPrices
- Defined in:
- lib/copilot/types.rb
Overview
Model billing token prices.
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#cache_price ⇒ Object
Returns the value of attribute cache_price.
-
#input_price ⇒ Object
Returns the value of attribute input_price.
-
#output_price ⇒ Object
Returns the value of attribute output_price.
Class Method Summary collapse
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size
639 640 641 |
# File 'lib/copilot/types.rb', line 639 def batch_size @batch_size end |
#cache_price ⇒ Object
Returns the value of attribute cache_price
639 640 641 |
# File 'lib/copilot/types.rb', line 639 def cache_price @cache_price end |
#input_price ⇒ Object
Returns the value of attribute input_price
639 640 641 |
# File 'lib/copilot/types.rb', line 639 def input_price @input_price end |
#output_price ⇒ Object
Returns the value of attribute output_price
639 640 641 |
# File 'lib/copilot/types.rb', line 639 def output_price @output_price end |
Class Method Details
.from_hash(h) ⇒ Object
643 644 645 646 647 648 649 650 |
# File 'lib/copilot/types.rb', line 643 def self.from_hash(h) new( batch_size: h["batchSize"], cache_price: h["cachePrice"], input_price: h["inputPrice"], output_price: h["outputPrice"] ) end |