Class: Kasabi::Search::Facet::Term
- Inherits:
-
Object
- Object
- Kasabi::Search::Facet::Term
- Defined in:
- lib/kasabi/api/facet.rb
Overview
A term returned in a facet search result
A term has a number of hits, a reference to a search uri that can be used to find all of those hits, and a value
Instance Attribute Summary collapse
-
#hits ⇒ Object
readonly
Returns the value of attribute hits.
-
#search_uri ⇒ Object
readonly
Returns the value of attribute search_uri.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(hits, search_uri, value) ⇒ Term
constructor
A new instance of Term.
Constructor Details
#initialize(hits, search_uri, value) ⇒ Term
Returns a new instance of Term.
17 18 19 20 21 |
# File 'lib/kasabi/api/facet.rb', line 17 def initialize(hits, search_uri, value) @hits = hits @search_uri = search_uri @value = value end |
Instance Attribute Details
#hits ⇒ Object (readonly)
Returns the value of attribute hits.
13 14 15 |
# File 'lib/kasabi/api/facet.rb', line 13 def hits @hits end |
#search_uri ⇒ Object (readonly)
Returns the value of attribute search_uri.
14 15 16 |
# File 'lib/kasabi/api/facet.rb', line 14 def search_uri @search_uri end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
15 16 17 |
# File 'lib/kasabi/api/facet.rb', line 15 def value @value end |