Class: PhatPgsearch::IndexBuilder
- Inherits:
-
Object
- Object
- PhatPgsearch::IndexBuilder
- Defined in:
- lib/phat_pgsearch/index_builder.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#build ⇒ Object
readonly
Returns the value of attribute build.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
-
#initialize(base, definition) ⇒ IndexBuilder
constructor
A new instance of IndexBuilder.
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
#base ⇒ Object (readonly)
Returns the value of attribute base.
4 5 6 |
# File 'lib/phat_pgsearch/index_builder.rb', line 4 def base @base end |
#build ⇒ Object (readonly)
Returns the value of attribute build.
4 5 6 |
# File 'lib/phat_pgsearch/index_builder.rb', line 4 def build @build end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/phat_pgsearch/index_builder.rb', line 4 def connection @connection end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
4 5 6 |
# File 'lib/phat_pgsearch/index_builder.rb', line 4 def definition @definition end |