# activerecord-spanner-adapter - Class ActiveRecordSpannerAdapter::Index::Column (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-Column)
- [2.1.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.1.0/ActiveRecordSpannerAdapter-Index-Column)
- [2.0.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.0.0/ActiveRecordSpannerAdapter-Index-Column)
Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecordSpannerAdapter::Index::Column.

## Inherits

- Object

## Methods

### #desc!

    def desc!()

### #desc?

    def desc?() -> Boolean

**Returns**

- (Boolean)

### #index_name

    def index_name()

Returns the value of attribute index_name.

### #index_name=

    def index_name=(value)

Sets the attribute index_name

### #initialize

    def initialize(table_name, index_name, name, schema_name: "", order: nil, ordinal_position: nil) -> Column

**Returns**

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

### #name

    def name()

Returns the value of attribute name.

### #name=

    def name=(value)

Sets the attribute name

### #order

    def order()

Returns the value of attribute order.

### #order=

    def order=(value)

Sets the attribute order

### #ordinal_position

    def ordinal_position()

Returns the value of attribute ordinal_position.

### #ordinal_position=

    def ordinal_position=(value)

Sets the attribute ordinal_position

### #schema_name

    def schema_name()

Returns the value of attribute schema_name.

### #schema_name=

    def schema_name=(value)

Sets the attribute schema_name

### #storing?

    def storing?() -> Boolean

**Returns**

- (Boolean)

### #table_name

    def table_name()

Returns the value of attribute table_name.

### #table_name=

    def table_name=(value)

Sets the attribute table_name