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

## Inherits

- Object

## Methods

### #create_session

    def create_session(instance_id, database_id, labels: nil)