class Geodata::Queries::Finder
Public Instance Methods
find_by(hash)
click to toggle source
# File lib/geodata/queries/finder.rb, line 6 def find_by(hash) result = where(hash) result.is_a?(Array) ? result.sample : result end
where(hash)
click to toggle source
# File lib/geodata/queries/finder.rb, line 11 def where(hash) key, value = hash.first send(key, value) end