Class: Cassanity::ResultTransformers::ResultToArray
- Inherits:
-
Object
- Object
- Cassanity::ResultTransformers::ResultToArray
- Defined in:
- lib/cassanity/result_transformers/result_to_array.rb
Instance Method Summary collapse
-
#call(result, args = nil) ⇒ Object
Internal: Turns result into Array of Hashes.
Instance Method Details
permalink #call(result, args = nil) ⇒ Object
Internal: Turns result into Array of Hashes.
6 7 8 |
# File 'lib/cassanity/result_transformers/result_to_array.rb', line 6 def call(result, args = nil) result.map { |row| row } end |