Class: Og::MockDatabase::ManagedClassMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/og/mock.rb

Overview

Managed class metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass = nil) ⇒ ManagedClassMeta

Returns a new instance of ManagedClassMeta.



30
31
32
33
# File 'lib/og/mock.rb', line 30

def initialize(klass = nil)
	@klass = klass
	@field_index = {}
end

Instance Attribute Details

#field_indexObject

A mapping of the database fields to the object properties.



28
29
30
# File 'lib/og/mock.rb', line 28

def field_index
  @field_index
end

#klassObject

The managed class.



25
26
27
# File 'lib/og/mock.rb', line 25

def klass
  @klass
end