Class: Workarea::Search::Admin::FulfillmentSku

Inherits:
Workarea::Search::Admin show all
Defined in:
app/models/workarea/search/admin/fulfillment_sku.rb

Instance Method Summary collapse

Methods inherited from Workarea::Search::Admin

#as_document, #created_at, for, #id, jump_to, #jump_to_param, #jump_to_route_helper, #jump_to_search_text, #keywords, #name, #releasable?, #sanitized_keywords, #should_be_indexed?, #status, #updated_at

Methods included from Elasticsearch::Document

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

Instance Method Details

#facetsObject



21
22
23
# File 'app/models/workarea/search/admin/fulfillment_sku.rb', line 21

def facets
  super.merge(policy: model.policy)
end

#jump_to_positionObject



17
18
19
# File 'app/models/workarea/search/admin/fulfillment_sku.rb', line 17

def jump_to_position
  12
end

#jump_to_textObject



13
14
15
# File 'app/models/workarea/search/admin/fulfillment_sku.rb', line 13

def jump_to_text
  "#{model.id} - (#{model.policy})"
end

#search_textObject



9
10
11
# File 'app/models/workarea/search/admin/fulfillment_sku.rb', line 9

def search_text
  model.name
end

#typeObject



5
6
7
# File 'app/models/workarea/search/admin/fulfillment_sku.rb', line 5

def type
  'fulfillment_sku'
end