Class: ActiveHarness::Pricing::Source::PricingData

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_harness/pricing/source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#context_windowObject

Returns the value of attribute context_window

Returns:

  • (Object)

    the current value of context_window



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def context_window
  @context_window
end

#input_per_1mObject

Returns the value of attribute input_per_1m

Returns:

  • (Object)

    the current value of input_per_1m



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def input_per_1m
  @input_per_1m
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def name
  @name
end

#output_per_1mObject

Returns the value of attribute output_per_1m

Returns:

  • (Object)

    the current value of output_per_1m



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def output_per_1m
  @output_per_1m
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def source
  @source
end

#time_to_first_tokenObject

Returns the value of attribute time_to_first_token

Returns:

  • (Object)

    the current value of time_to_first_token



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def time_to_first_token
  @time_to_first_token
end

#tokens_per_secondObject

Returns the value of attribute tokens_per_second

Returns:

  • (Object)

    the current value of tokens_per_second



27
28
29
# File 'lib/active_harness/pricing/source.rb', line 27

def tokens_per_second
  @tokens_per_second
end

Instance Method Details

#inspectObject



38
39
40
41
# File 'lib/active_harness/pricing/source.rb', line 38

def inspect
  "#<PricingData source=#{source} key=#{key.inspect}" \
    " in=$#{input_per_1m}/M out=$#{output_per_1m}/M>"
end