Module: Mongoo::Embedded::CoreMixin::InstanceMethods

Defined in:
lib/mongoo/embedded/core_mixin.rb

Overview

ClassMethods

Instance Method Summary collapse

Instance Method Details

#embedded_array_proxy(attrib, klass) ⇒ Object


14
15
16
# File 'lib/mongoo/embedded/core_mixin.rb', line 14

def embedded_array_proxy(attrib, klass)
  Mongoo::Embedded::ArrayProxy.new(self, attrib, klass)
end

#embedded_doc(attrib, klass) ⇒ Object


18
19
20
# File 'lib/mongoo/embedded/core_mixin.rb', line 18

def embedded_doc(attrib, klass)
  klass.new(self, attrib)
end

#embedded_hash_proxy(attrib, klass) ⇒ Object


10
11
12
# File 'lib/mongoo/embedded/core_mixin.rb', line 10

def embedded_hash_proxy(attrib, klass)
  Mongoo::Embedded::HashProxy.new(self, attrib, klass)
end