Class: Convergence::Index
- Inherits:
-
Object
- Object
- Convergence::Index
- Defined in:
- lib/convergence/index.rb
Instance Attribute Summary collapse
-
#index_columns ⇒ Object
Returns the value of attribute index_columns.
-
#index_name ⇒ Object
Returns the value of attribute index_name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(index_name, index_columns, options) ⇒ Index
constructor
A new instance of Index.
Constructor Details
#initialize(index_name, index_columns, options) ⇒ Index
Returns a new instance of Index.
4 5 6 7 8 |
# File 'lib/convergence/index.rb', line 4 def initialize(index_name, index_columns, ) @index_name = index_name @index_columns = [index_columns].flatten.map(&:to_s) = { name: @index_name }.merge() end |
Instance Attribute Details
#index_columns ⇒ Object
Returns the value of attribute index_columns.
2 3 4 |
# File 'lib/convergence/index.rb', line 2 def index_columns @index_columns end |
#index_name ⇒ Object
Returns the value of attribute index_name.
2 3 4 |
# File 'lib/convergence/index.rb', line 2 def index_name @index_name end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/convergence/index.rb', line 2 def end |