Class: Upgrow::Repository

Inherits:
BasicRepository show all
Includes:
ActiveRecordConversion, ActiveRecordQueries
Defined in:
lib/upgrow/repository.rb

Overview

Repositories are responsible for the persistence layer of the app. They encapsulate Rails’ Active Record in a subset of simple methods for querying and persistence of data, and return simple read-only objects as a result. This allows the app to isolate Active Record only to this subset, exposing only the desired queries and methods to other layers through Repositories.

Instance Attribute Summary

Attributes inherited from BasicRepository

#base

Method Summary

Methods included from ActiveRecordQueries

#all, #create, #delete, #find, included, #update

Methods included from ActiveRecordConversion

#_to_model, #to_model

Methods inherited from BasicRepository

#initialize

Constructor Details

This class inherits a constructor from Upgrow::BasicRepository