2.14.1 (latest) 2.14.0 2.13.1 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.1 2.6.0 2.5.0 2.4.0 2.3.1 2.2.4 Reference documentation and code samples for the Firestore in Datastore mode API class Google::Cloud::Datastore::Properties.

## Properties

Hash-like data structure for Datastore properties.

See [Entity#properties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Entity.md.txt#Google__Cloud__Datastore__Entity_properties_instance_ "Google::Cloud::Datastore::Entity#properties (method)")

## Inherits

- Object

## Methods

### .from_grpc

```ruby
def self.from_grpc(grpc_map)
```

### #\[\]

```ruby
def [](key)
```
**Aliases**

- [#read](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt#Google__Cloud__Datastore__Properties_read_instance_)

### #\[\]=

```ruby
def []=(key, value)
```
**Aliases**

- [#write](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt#Google__Cloud__Datastore__Properties_write_instance_)

### #delete

```ruby
def delete(key, &block)
```

### #each

```ruby
def each(&block)
```

### #exist?

```ruby
def exist?(key) -> Boolean
```
**Returns**

- (Boolean)

### #fetch

```ruby
def fetch(key, &_block)
```

### #initialize

```ruby
def initialize(properties = {}) -> Properties
```
**Returns**

- ([Properties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt)) --- a new instance of Properties

### #read

```ruby
def read(key)
```
**Alias Of** : [#\[\]](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt#Google__Cloud__Datastore__Properties_[]_instance_)

### #to_grpc

```ruby
def to_grpc()
```

### #to_h

```ruby
def to_h()
```
**Aliases**

- [#to_hash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt#Google__Cloud__Datastore__Properties_to_hash_instance_)

### #to_hash

```ruby
def to_hash()
```
**Alias Of** : [#to_h](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt#Google__Cloud__Datastore__Properties_to_h_instance_)

### #write

```ruby
def write(key, value)
```
**Alias Of** : [#\[\]=](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastore/latest/Google-Cloud-Datastore-Properties.md.txt#Google__Cloud__Datastore__Properties_[]=_instance_)