Class: Sunspot::Type::AbstractType

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/sunspot/type.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#accepts_dynamic?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/sunspot/type.rb', line 70

def accepts_dynamic?
  true
end

#accepts_more_like_this?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/sunspot/type.rb', line 74

def accepts_more_like_this?
  false
end

#to_literal(object) ⇒ Object

Raises:

  • (ArgumentError)


78
79
80
81
82
83
# File 'lib/sunspot/type.rb', line 78

def to_literal(object)
  raise(
    ArgumentError,
    "#{self.class.name} cannot be used as a Solr literal"
  )
end