Method: Sunspot::Field#initialize

Defined in:
lib/sunspot/field.rb

#initialize(name, type, options = {}) ⇒ Field

Returns a new instance of Field.



10
11
12
13
14
# File 'lib/sunspot/field.rb', line 10

def initialize(name, type, options = {}) #:nodoc
  @name, @type = name.to_sym, type
  @stored = !!options.delete(:stored)
  @attributes = {}
end