Class: Typesensual::Search::GroupedHit
- Inherits:
-
Object
- Object
- Typesensual::Search::GroupedHit
- Defined in:
- lib/typesensual/search/grouped_hit.rb
Instance Method Summary collapse
- #count ⇒ Object
- #group_key ⇒ Object
- #hits ⇒ Object
-
#initialize(group) ⇒ GroupedHit
constructor
{ "group_key": [ "420", "69" ], "hits": { ... }, "found": 3 }.
Constructor Details
#initialize(group) ⇒ GroupedHit
{ "group_key": [ "420", "69" ], "hits": { ... }, "found": 3 }
20 21 22 |
# File 'lib/typesensual/search/grouped_hit.rb', line 20 def initialize(group) @group = group end |
Instance Method Details
#count ⇒ Object
24 25 26 |
# File 'lib/typesensual/search/grouped_hit.rb', line 24 def count @group['found'] end |
#group_key ⇒ Object
32 33 34 |
# File 'lib/typesensual/search/grouped_hit.rb', line 32 def group_key @group['group_key'] end |