Class: Copilot::ModelBillingTokenPrices

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Model billing token prices.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size

Returns:

  • (Object)

    the current value of batch_size



639
640
641
# File 'lib/copilot/types.rb', line 639

def batch_size
  @batch_size
end

#cache_priceObject

Returns the value of attribute cache_price

Returns:

  • (Object)

    the current value of cache_price



639
640
641
# File 'lib/copilot/types.rb', line 639

def cache_price
  @cache_price
end

#input_priceObject

Returns the value of attribute input_price

Returns:

  • (Object)

    the current value of input_price



639
640
641
# File 'lib/copilot/types.rb', line 639

def input_price
  @input_price
end

#output_priceObject

Returns the value of attribute output_price

Returns:

  • (Object)

    the current value of 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