Class: Workarea::Search::Storefront::Page

Inherits:
Workarea::Search::Storefront show all
Defined in:
app/models/workarea/search/storefront/page.rb

Instance Method Summary collapse

Methods inherited from Workarea::Search::Storefront

#active_segment_ids, #as_document, #cache, ensure_dynamic_mappings, ensure_product_mappings, #facets, #id, #keywords, #numeric, #release_id, #sorts, #suggestion_content, #type

Methods included from Elasticsearch::Document

all, #as_bulk_document, #as_document, current_index_prefix, #destroy, #initialize, #save

Instance Method Details

#activeObject



13
14
15
# File 'app/models/workarea/search/storefront/page.rb', line 13

def active
  { now: model.active? }
end

#contentObject



5
6
7
# File 'app/models/workarea/search/storefront/page.rb', line 5

def content
  { name: model.name }
end

#slugObject



9
10
11
# File 'app/models/workarea/search/storefront/page.rb', line 9

def slug
  model.slug
end