Class: DohDb::HashRow

Inherits:
Object
  • Object
show all
Defined in:
lib/dohmysql/hash_row.rb

Class Method Summary collapse

Class Method Details

.new(keys, values) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/dohmysql/hash_row.rb', line 4

def self.new(keys, values)
  hash = {}
  keys.each_with_index do |key, index|
    hash[key] = values.at(index)
  end
  hash
end