Sha256: bd5334aa65f958d32d1702b3fab4fe7f555a04e2ecf1dfd5ec01910661e99008

Contents?: true

Size: 400 Bytes

Versions: 31

Compression:

Stored size: 400 Bytes

Contents

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

    def custom_string
      @custom_string ||= {}
    end
  end
end

Sunspot.setup(Namespaced::Comment) do
  text :body, :author_name
  string :author_name
  time :published_at
  integer :average_rating
  dynamic_string :custom_string
  boost :boost
end

Version data entries

31 entries across 31 versions & 8 rubygems

Version Path
Chrononaut-sunspot-client-0.9.4 spec/mocks/comment.rb
UnderpantsGnome-sunspot-0.9.1.1 spec/mocks/comment.rb
UnderpantsGnome-sunspot-0.9.8.1 spec/mocks/comment.rb
benjaminkrause-sunspot-0.9.7 spec/mocks/comment.rb
benjaminkrause-sunspot-0.9.8 spec/mocks/comment.rb
kristopher-sunspot-0.9.8 spec/mocks/comment.rb
kuahyeow-sunspot-0.9.7 spec/mocks/comment.rb
kuahyeow-sunspot-0.9.8 spec/mocks/comment.rb
outoftime-sunspot-0.9.0 spec/mocks/comment.rb
outoftime-sunspot-0.9.1 spec/mocks/comment.rb
outoftime-sunspot-0.9.2 spec/mocks/comment.rb
outoftime-sunspot-0.9.3 spec/mocks/comment.rb
outoftime-sunspot-0.9.4 spec/mocks/comment.rb
outoftime-sunspot-0.9.5 spec/mocks/comment.rb
outoftime-sunspot-0.9.6 spec/mocks/comment.rb
outoftime-sunspot-0.9.7 spec/mocks/comment.rb
outoftime-sunspot-0.9.8 spec/mocks/comment.rb
sunspot-0.10.9 spec/mocks/comment.rb
sunspot-0.10.8 spec/mocks/comment.rb
nxa-sunspot-0.10.7 spec/mocks/comment.rb