Class SearchApi::Search::SearchAttributeBuilder
In: lib/search_api/search.rb
Parent: Object

Describes a search attribute with:

  • a name,
  • some options
  • an optional block

Methods

new  

Attributes

block  [RW]  block is an optional proc (may be nil)
name  [R]  name is a search attribute name. It is read-only so that SearchApi::Bridge::Base.rewrite_search_attribute_builder is unable to rename attributes.
options  [RW]  options is an options Hash (never nil, may be empty Hash)

Public Class methods

[Source]

     # File lib/search_api/search.rb, line 447
447:       def initialize(name, options={}, &block)
448:         @name = name.to_sym
449:         @options = options
450:         @block = block
451:       end

[Validate]