Class: Pho::Facet::Term

Inherits:
Object
  • Object
show all
Defined in:
lib/pho/facet.rb

Overview

Captures the information about a specific term

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hitsObject (readonly)

Returns the value of attribute hits.



8
9
10
# File 'lib/pho/facet.rb', line 8

def hits
  @hits
end

#search_uriObject (readonly)

Returns the value of attribute search_uri.



9
10
11
# File 'lib/pho/facet.rb', line 9

def search_uri
  @search_uri
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/pho/facet.rb', line 10

def value
  @value
end