class SQLRecord::Base
Base
provides a class that has a collection of raw_attributes. These can be set from a database abstraction (SQLRecord::SanitizedQuery
), and are expected to be type_cast by a mixin
(SQLRecord::Attributes::Mapper)
@todo Does it sound like the database abstraction could be a whole other class?
Attributes
raw_attributes[R]
the raw attributes returned from a db query
Public Class Methods
new(raw_attributes = {})
click to toggle source
# File lib/sql_record/base.rb, line 14 def initialize raw_attributes = {} @raw_attributes = raw_attributes end