Class: ActiveHarness::ModelInfo

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

Overview

Static model metadata resolved at call time.

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



11
12
13
# File 'lib/active_harness/result.rb', line 11

def context_window
  @context_window
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



11
12
13
# File 'lib/active_harness/result.rb', line 11

def name
  @name
end

#pricingObject

Returns the value of attribute pricing

Returns:

  • (Object)

    the current value of pricing



11
12
13
# File 'lib/active_harness/result.rb', line 11

def pricing
  @pricing
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



11
12
13
# File 'lib/active_harness/result.rb', line 11

def provider
  @provider
end

#temperatureObject

Returns the value of attribute temperature

Returns:

  • (Object)

    the current value of temperature



11
12
13
# File 'lib/active_harness/result.rb', line 11

def temperature
  @temperature
end

Instance Method Details

#inspectObject



20
21
22
23
24
25
26
# File 'lib/active_harness/result.rb', line 20

def inspect
  parts = ["name=#{name.inspect}", "provider=#{provider.inspect}"]
  parts << "temperature=#{temperature}" if temperature
  parts << "context_window=#{context_window}" if context_window
  parts << "pricing=#{pricing.inspect}" if pricing
  "#<ModelInfo #{parts.join(' ')}>"
end

#to_sObject



19
# File 'lib/active_harness/result.rb', line 19

def to_s; name.to_s; end