Sha256: ea25d866d41e5e301beb0107a252884ff6a7868bad18cd1a9437276166edb298
Contents?: true
Size: 605 Bytes
Versions: 4
Compression:
Stored size: 605 Bytes
Contents
module SQLRecord # 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? class Base extend SQLRecord::SanitizedQuery extend SQLRecord::Attributes::Mapper # the raw attributes returned from a db query attr_accessor :raw_attributes def initialize raw_attributes = {} @raw_attributes = raw_attributes end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sql_record-1.0.3 | lib/sql_record/base.rb |
sql_record-0.2.0 | lib/sql_record/base.rb |
sql_record-1.0.1 | lib/sql_record/base.rb |
sql_record-1.0.0 | lib/sql_record/base.rb |