Sha256: 5203aca4ab1f55a445e6eb737fdfe76b8ef526ec962c6925f68d8a0c1662b1cc
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
module Funneler class FunnelFactory class << self def build(route_generator:, params: {}, expires_in_days: nil) return nil unless route_generator.respond_to?(:call) routes = route_generator.call(params) Funnel.new('routes' => routes, 'expires_in_days' => expires_in_days) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
funneler-1.0.1 | lib/funneler/funnel_factory.rb |