Class: Patriot::Util::DBClient::Record
- Inherits:
-
Object
- Object
- Patriot::Util::DBClient::Record
- Defined in:
- lib/patriot/util/db_client/record.rb
Overview
a class for abstracting access to records sub classes of this class should provide accessers for columns or select items (e.g. overwrite method_missing)
Direct Known Subclasses
Instance Method Summary collapse
-
#get_id ⇒ Object
get serial id of this record.
-
#to_hash(keys) ⇒ Object
convert this record to hash.
Instance Method Details
#get_id ⇒ Object
get serial id of this record
12 13 14 |
# File 'lib/patriot/util/db_client/record.rb', line 12 def get_id raise NotImplementedError end |
#to_hash(keys) ⇒ Object
convert this record to hash
18 19 20 |
# File 'lib/patriot/util/db_client/record.rb', line 18 def to_hash(keys) raise NotImplementedError end |