Module: Datamappify::Entity

Defined in:
lib/datamappify/entity.rb,
lib/datamappify/entity/lazy_checking.rb

Defined Under Namespace

Modules: LazyChecking

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/datamappify/entity.rb', line 7

def self.included(klass)
  klass.class_eval do
    include Observable
    include Virtus
    include Virtus::Equalizer.new(inspect)
    include ActiveModel::Validations
    include LazyChecking

    attribute :id, Integer
  end
end