Update adapter.rb

modifying read method to work with a single record or a collection