Class: Og::Database::ManagedClassMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/og/database.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.



32
33
34
35
# File 'lib/og/database.rb', line 32

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

Instance Attribute Details

#field_indexObject

A mapping of the database fields to the object properties.



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

def field_index
  @field_index
end

#klassObject

The managed class.



27
28
29
# File 'lib/og/database.rb', line 27

def klass
  @klass
end