Module: MassiveRecord::ORM::Schema::CommonInterface

Extended by:
ActiveSupport::Concern
Defined in:
lib/massive_record/orm/schema/common_interface.rb

Overview

Common methods both shared with table interface and field interface. Methods are to be included as ClassMethods, and where they are to be included must provide a schema_source(). Currently it is expected to be a set of Schema::ColumnFamilies or a set of Schema::Fields, but I guess as long as it responds to to_hash and attribute_names you are fine.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#attributes_schemaObject



42
43
44
# File 'lib/massive_record/orm/schema/common_interface.rb', line 42

def attributes_schema
  self.class.attributes_schema
end

#known_attribute_namesObject



46
47
48
# File 'lib/massive_record/orm/schema/common_interface.rb', line 46

def known_attribute_names
  self.class.known_attribute_names
end