<commit_before># deepstream-ruby
deepstream.io ruby client


### Usage

```ruby
ds_client = Deepstream::Client.new('localhost')

ds_client.emit 'my_event'

ds_client.on('some_event') do |msg|
  puts msg
end
```
<commit_msg>README updated with info about records<commit_after># deepstream-ruby
deepstream.io ruby client


### Usage

```ruby
ds = Deepstream::Client.new('localhost')

# Emit events

ds.emit 'my_event'
# or
ds.emit 'my_event', foo: 'bar', bar: 'foo'


# Subscribe to events
ds.on('some_event') do |msg|
  puts msg
end


# Get records
foo = ds.get('foo')

# Update record
foo.bar = 'bar'

```
{'fraction_non_alphanumeric': 0.15206611570247933, 'fraction_numerical': 0.0, 'mean_word_length': 4.771428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '153799', 'n_tokens_mistral': 236, 'n_tokens_neox': 221, 'n_words': 59}