Class: Patriot::Util::DBClient::Record

Inherits:
Object
  • Object
show all
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

HashRecord

Instance Method Summary collapse

Instance Method Details

#get_idObject

get serial id of this record

Raises:

  • (NotImplementedError)


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

Parameters:

  • keys (Hash)

    attributes included in the returned hash

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/patriot/util/db_client/record.rb', line 18

def to_hash(keys)
  raise NotImplementedError
end