Class: RailsAiContext::JsonBudget::Taken
- 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
-
#chars ⇒ Object
readonly
Returns the value of attribute chars.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#whole ⇒ Object
readonly
Returns the value of attribute whole.
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
#chars ⇒ Object (readonly)
Returns the value of attribute chars
50 51 52 |
# File 'lib/rails_ai_context/json_budget.rb', line 50 def chars @chars end |
#value ⇒ Object (readonly)
Returns the value of attribute value
50 51 52 |
# File 'lib/rails_ai_context/json_budget.rb', line 50 def value @value end |
#whole ⇒ Object (readonly)
Returns the value of attribute whole
50 51 52 |
# File 'lib/rails_ai_context/json_budget.rb', line 50 def whole @whole end |