Module: Eson::Shared::SimpleSearch

Extended by:
API
Defined in:
lib/eson/shared/core/simple_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from API

multi_index, multi_types, no_indices, parameters, register, source_param

Methods included from Chainable

#chainable, #extendable

Instance Attribute Details

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/eson/shared/core/simple_search.rb', line 8

def type
  @type
end

Instance Method Details

#typesObject



24
25
26
27
28
29
30
31
32
# File 'lib/eson/shared/core/simple_search.rb', line 24

def types
  if @types
    Array(@types)
  elsif type
    Array(type)
  else
    []
  end
end