Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v6.0.0) is shown here.
These similar methods exist in v6.1.7.7:
first()
public
Returns the first record
from the rows collection. If the rows collection is empty, returns
nil.
Show source
def first
return nil if @rows.empty?
Hash[@columns.zip(@rows.first)]
end