Class: Hecks::Forms::Record
- Inherits:
-
Struct
- Object
- Struct
- Hecks::Forms::Record
- Defined in:
- lib/hecks/forms/record_table.rb
Overview
The one shape every renderer in this directory reads a record as —
id plus its state hash. Runtime::Instance already answers both,
so repository.all's own records pass straight through; a QUERY's
answer does not (QueryInterpreter#call flattens {id:}.merge(state)
into one hash with no method to call — see
docs/command-form-and-query-form-bluebook.md's note on why), so
app.rb wraps those results in one of these before they ever reach a
renderer, and every renderer here only has to know one shape.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
14 15 16 |
# File 'lib/hecks/forms/record_table.rb', line 14 def id @id end |
#state ⇒ Object
Returns the value of attribute state
14 15 16 |
# File 'lib/hecks/forms/record_table.rb', line 14 def state @state end |