Class: Hyperactive::Record::Bass

Inherits:
Object
  • Object
show all
Includes:
Index::Indexable, Persistent, Transactions::Accessors
Defined in:
lib/hyperactive/record.rb

Overview

A convenient base class to inherit when you want the basic utility methods provided by for example ActiveRecord::Base *hint hint*.

NB: When an instance is created you will actually have a copy within your local machine which is not what you usually want. Every other time you fetch it using a select or other method you will instead receive a proxy object to the database. This means that nothing you do to it at that point will be persistent or even necessarily have a defined result. Therefore: do not use the instantiated object, instead call my_instance.save to get a proxy to the object stored into the database.

Direct Known Subclasses

Hash::Element, Hash::Head, List::Element, List::Head

Method Summary

Methods included from Transactions::Accessors

append_features

Methods included from Index::Indexable

append_features

Methods included from Persistent

#<=>, append_features, #create, #destroy!, #with_transaction