Sha256: db9aac55463abc2c624219d0a237fac92fdfa1e9d14e7eb779218fdd6aebbde9

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require 'opennorth/represent/models/office'

module Opennorth
  class Represent
    class Offices < Fog::Collection
      model Opennorth::Represent::Office

      def where(attribute_value_map)
        select do |rep|
          attribute_value_map.all? do |(attribute, value)|
            rep.send(attribute) == value
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opennorth-represent-0.1.0 lib/opennorth/represent/models/offices.rb