Class: DataMapper::Adapters::DhApiAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- DataMapper::Adapters::DhApiAdapter
- Defined in:
- lib/dm-dh_api-adapter.rb
Instance Method Summary collapse
-
#read(query) ⇒ Array
Looks up one record or a collection of records from the data-store: “SELECT” in SQL.
Instance Method Details
#read(query) ⇒ Array
Looks up one record or a collection of records from the data-store: “SELECT” in SQL.
63 64 65 |
# File 'lib/dm-dh_api-adapter.rb', line 63 def read(query) query.filter_records(records_for(query.model).dup) end |