# activerecord-spanner-adapter - Class ActiveRecordSpannerAdapter::Index (v2.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.2.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecordSpannerAdapter-Index)
- [2.1.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.1.0/ActiveRecordSpannerAdapter-Index)
- [2.0.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.0.0/ActiveRecordSpannerAdapter-Index)
Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecordSpannerAdapter::Index.

## Inherits

- Object

## Methods

### #column_names

    def column_names()

### #columns

    def columns()

Returns the value of attribute columns.

### #columns=

    def columns=(value)

Sets the attribute columns

### #columns_by_position

    def columns_by_position()

### #initialize

    def initialize(table, name, columns, type: nil, unique: false, null_filtered: false, interleave_in: nil, storing: nil, state: nil, schema: "") -> Index

**Returns**

- ([Index](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecordSpannerAdapter-Index)) --- a new instance of Index

### #interleave_in

    def interleave_in()

Returns the value of attribute interleave_in.

### #interleave_in=

    def interleave_in=(value)

Sets the attribute interleave_in

### #name

    def name()

Returns the value of attribute name.

### #name=

    def name=(value)

Sets the attribute name

### #null_filtered

    def null_filtered()

Returns the value of attribute null_filtered.

### #null_filtered=

    def null_filtered=(value)

Sets the attribute null_filtered

### #options

    def options()

### #orders

    def orders()

### #primary?

    def primary?() -> Boolean

**Returns**

- (Boolean)

### #rename_column_options

    def rename_column_options(old_column, new_column)

### #schema

    def schema()

Returns the value of attribute schema.

### #schema=

    def schema=(value)

Sets the attribute schema

### #state

    def state()

Returns the value of attribute state.

### #state=

    def state=(value)

Sets the attribute state

### #storing

    def storing()

Returns the value of attribute storing.

### #storing=

    def storing=(value)

Sets the attribute storing

### #table

    def table()

Returns the value of attribute table.

### #table=

    def table=(value)

Sets the attribute table

### #type

    def type()

Returns the value of attribute type.

### #type=

    def type=(value)

Sets the attribute type

### #unique

    def unique()

Returns the value of attribute unique.

### #unique=

    def unique=(value)

Sets the attribute unique