Class: Pho::Facet::Term
- Inherits:
-
Object
- Object
- Pho::Facet::Term
- Defined in:
- lib/pho/facet.rb
Overview
Captures the information about a specific term
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.
12 13 14 15 16 |
# File 'lib/pho/facet.rb', line 12 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.
8 9 10 |
# File 'lib/pho/facet.rb', line 8 def hits @hits end |
#search_uri ⇒ Object (readonly)
Returns the value of attribute search_uri.
9 10 11 |
# File 'lib/pho/facet.rb', line 9 def search_uri @search_uri end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/pho/facet.rb', line 10 def value @value end |