<commit_before>> "Nasreddin, your donkey has been lost."

> "Thank goodness I was not on the donkey at the time, or I would be lost too."


## What is Nasreddin?

<NAME> was a wise scolar from 13th century Anatolia. This, however, is a library designed to enable know-nothing
distribution of data requests between varying services.

To connect two services, one needs to include the Nasreddin::APIServer middleware and indicate what resources it is offering:
```ruby
require 'nasreddin/api-server'

use Nasreddin::APIServer, resources: %w| users |
run MyApp
```
Then, the consumer can use the Nasreddin::Resource class to generate new classes that will talk to the APIServer when making
requests.


...more documentation later...<commit_msg>added example usage of Nasreddin::Resource<commit_after>> "Nasreddin, your donkey has been lost."

> "Thank goodness I was not on the donkey at the time, or I would be lost too."


## What is Nasreddin?

<NAME> was a wise scolar from 13th century Anatolia. This, however, is a library designed to enable know-nothing
distribution of data requests between varying services.

To connect two services, one needs to include the Nasreddin::APIServer middleware and indicate what resources it is offering:
```ruby
require 'nasreddin/api-server'

use Nasreddin::APIServer, resources: %w| users |
run MyApp
```
Then, the consumer can use the Nasreddin::Resource class to generate new classes that will talk to the APIServer when making
requests.


An example implementation of Nasreddin::Resource is provided below

```ruby
require 'nasreddin/resource'

class Users < Nasreddin::Resource('users') # name of endpoint for resource
end

```
{'fraction_non_alphanumeric': 0.07365269461077845, 'fraction_numerical': 0.0023952095808383233, 'mean_word_length': 4.94661921708185, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 9, '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': '848137', 'n_tokens_mistral': 494, 'n_tokens_neox': 446, 'n_words': 228}