Sha256: d43a2e9f6dd1e08fe7afee6e58d6e02cc35a18c0f0531d1216fc39307df8924c

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 Bytes

Contents

module Namespaced
  class Comment < MockRecord
    attr_reader :id
    attr_accessor :author_name, :published_at, :body, :average_rating, :boost,
                  :hash

    def custom_float
      @custom_float ||= {}
    end
  end
end

Sunspot.setup(Namespaced::Comment) do
  text :body, :author_name
  string :author_name
  time :published_at
  long :hash
  double :average_rating
  dynamic_float :custom_float, :multiple => true
  boost :boost
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sunspot-1.0.5 spec/mocks/comment.rb
sunspot-1.0.4 spec/mocks/comment.rb
sunspot-1.0.3 spec/mocks/comment.rb
sunspot-1.0.2 spec/mocks/comment.rb
sunspot-1.0.1 spec/mocks/comment.rb
sunspot-1.0.0 spec/mocks/comment.rb