Class: RailsAiContext::JsonBudget::Taken

Inherits:
Data
  • Object
show all
Defined in:
lib/rails_ai_context/json_budget.rb

Overview

What take_child hands back to a container: the value to keep, its exact compact JSON size, and whether it survived intact.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Data

#==, #deconstruct, #deconstruct_keys, define, #hash, #initialize, #inspect, members, #members, #to_h, #with

Constructor Details

This class inherits a constructor from Data

Instance Attribute Details

#charsObject (readonly)

Returns the value of attribute chars

Returns:

  • (Object)

    the current value of chars



50
51
52
# File 'lib/rails_ai_context/json_budget.rb', line 50

def chars
  @chars
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



50
51
52
# File 'lib/rails_ai_context/json_budget.rb', line 50

def value
  @value
end

#wholeObject (readonly)

Returns the value of attribute whole

Returns:

  • (Object)

    the current value of whole



50
51
52
# File 'lib/rails_ai_context/json_budget.rb', line 50

def whole
  @whole
end