# File lib/agnostic_backend/indexable/config.rb, line 18 def primary? @primary end
class AgnosticBackend::Indexable::Config::Entry
Attributes
index_class[R]
options[R]
Public Class Methods
new(index_class:, indexable_class:, primary: true, **options)
click to toggle source
# File lib/agnostic_backend/indexable/config.rb, line 11 def initialize(index_class:, indexable_class:, primary: true, **options) @index_class = index_class @indexable_class = indexable_class @primary = primary @options = options end
Public Instance Methods
create_index()
click to toggle source
# File lib/agnostic_backend/indexable/config.rb, line 22 def create_index @index_class.new(@indexable_class, primary: @primary, **@options) end
primary?()
click to toggle source