Class: CrudComponents::Presenters::Collection::Group
- Inherits:
-
Struct
- Object
- Struct
- CrudComponents::Presenters::Collection::Group
- Defined in:
- lib/crud_components/presenters/collection.rb
Overview
── grouping ─────────────────────────────────────────────────────────A run of records sharing one group value. ‘key` is URL-safe (for ?open=), `label` is for display.
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#label ⇒ Object
Returns the value of attribute label.
-
#records ⇒ Object
Returns the value of attribute records.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
276 277 278 |
# File 'lib/crud_components/presenters/collection.rb', line 276 def key @key end |
#label ⇒ Object
Returns the value of attribute label
276 277 278 |
# File 'lib/crud_components/presenters/collection.rb', line 276 def label @label end |
#records ⇒ Object
Returns the value of attribute records
276 277 278 |
# File 'lib/crud_components/presenters/collection.rb', line 276 def records @records end |
Instance Method Details
#count ⇒ Object
277 |
# File 'lib/crud_components/presenters/collection.rb', line 277 def count = records.size |