Sha256: 7fb14436c1959806542d3161b6676602d8c892e432338f2784939800120310bd
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
require 'rom' require 'rfm' module ROM module FMP class Gateway < ROM::Gateway attr_reader :datasets, :database def initialize(*options) @database = Rfm.database(options[0].to_h.merge(FMRESULTSET_TEMPLATE).to_h) @datasets = Hash.new end def dataset(name) datasets[name.to_s] ||= Dataset.new(@database[name.to_s]) end # This is required per lint specs alias_method :[], :dataset def dataset?(name) datasets.key?(name.to_s) end end # Gateway end # FMP end # ROM
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-fmp-0.0.4 | lib/rom/fmp/gateway.rb |