Sha256: 975faab14a6f048287c34ec7ecfee2ba6f76687b6b42dedce58cdbe992c32c3d

Contents?: true

Size: 226 Bytes

Versions: 3

Compression:

Stored size: 226 Bytes

Contents

module Terrestrial
  class SubsetQueriesProxy
    def initialize(query_map)
      @query_map = query_map
    end

    def execute(superset, name, *params)
      @query_map.fetch(name).call(superset, *params)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
terrestrial-0.5.0 lib/terrestrial/subset_queries_proxy.rb
terrestrial-0.3.0 lib/terrestrial/subset_queries_proxy.rb
terrestrial-0.1.1 lib/terrestrial/subset_queries_proxy.rb