Class: Kasabi::Search::Facet::Term

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#hitsObject (readonly)

Returns the value of attribute hits.



13
14
15
# File 'lib/kasabi/api/facet.rb', line 13

def hits
  @hits
end

#search_uriObject (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

#valueObject (readonly)

Returns the value of attribute value.



15
16
17
# File 'lib/kasabi/api/facet.rb', line 15

def value
  @value
end