Class: PhatPgsearch::IndexBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/phat_pgsearch/index_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base, definition) ⇒ IndexBuilder

Returns a new instance of IndexBuilder.



5
6
7
8
9
10
# File 'lib/phat_pgsearch/index_builder.rb', line 5

def initialize(base, definition)
  @base = base
  @definition = definition
  @connection = base.class.connection
  build_index
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



4
5
6
# File 'lib/phat_pgsearch/index_builder.rb', line 4

def base
  @base
end

#buildObject (readonly)

Returns the value of attribute build.



4
5
6
# File 'lib/phat_pgsearch/index_builder.rb', line 4

def build
  @build
end

#connectionObject (readonly)

Returns the value of attribute connection.



4
5
6
# File 'lib/phat_pgsearch/index_builder.rb', line 4

def connection
  @connection
end

#definitionObject (readonly)

Returns the value of attribute definition.



4
5
6
# File 'lib/phat_pgsearch/index_builder.rb', line 4

def definition
  @definition
end