Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elcuervo/chest


https://github.com/elcuervo/chest

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Chest

Separate your bussiness from your presistance

![Chest](http://www.em4miniatures.com/acatalog/TChestfrontweb.jpg)

## Installation

```bash
gem install chest
```

## Tutorial

```ruby
class User
include Chest::Model

attr_accessor :id, :name, :email
end

class UserRepository
include Chest::Repository

collection User
attributes :name
end

user = User.new(
name: "John",
email: "[email protected]"
)

UserRepository.save(user)

user.id
#=> 1
```