Class: MmEsSearch::Api::Facet::TermsFacetRow

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::EmbeddedDocument
Defined in:
lib/mm_es_search/api/facet/terms_facet_row.rb

Instance Method Summary collapse

Instance Method Details

#parentObject



27
28
29
# File 'lib/mm_es_search/api/facet/terms_facet_row.rb', line 27

def parent
  _parent_document
end

#to_english(pretty_print = true) ⇒ Object



19
20
21
# File 'lib/mm_es_search/api/facet/terms_facet_row.rb', line 19

def to_english(pretty_print = true)
  StringUtils.label_from_URI(term)
end

#to_form_name(data_type) ⇒ Object



23
24
25
# File 'lib/mm_es_search/api/facet/terms_facet_row.rb', line 23

def to_form_name(data_type)
  term
end

#zero_countObject



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

def zero_count
  self.count = 0
end