Module: Tyrion::Document

Defined in:
lib/tyrion/document.rb

Overview

Base module to persist objects.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/tyrion/document.rb', line 5

def self.included(receiver)
  receiver.extend ClassMethods

  receiver.class_eval do
    include Tyrion::Attributes
    include Tyrion::Querying
    include Tyrion::Validations
    include Tyrion::Persistence
    include Tyrion::Storage
    include InstanceMethods
  end
end