class Opennorth::Represent::Offices

Public Instance Methods

where(attribute_value_map) click to toggle source
# File lib/opennorth/represent/models/offices.rb, line 8
def where(attribute_value_map)
  select do |rep|
    attribute_value_map.all? do |(attribute, value)|
      rep.send(attribute) == value
    end
  end
end