class Mongoid::Matchers::HaveIndexForBase
Attributes
index_key[R]
index_options[R]
model[R]
Public Class Methods
new(index_key)
click to toggle source
# File lib/matchers/indexes/have_index_for.rb, line 6 def initialize(index_key) @index_key = index_key.symbolize_keys end
Public Instance Methods
with_options(index_options = {})
click to toggle source
# File lib/matchers/indexes/have_index_for.rb, line 10 def with_options(index_options = {}) @index_options = index_options self end