Class: ProxyPacRb::ProxyPacDumper
- Inherits:
-
Object
- Object
- ProxyPacRb::ProxyPacDumper
- Defined in:
- lib/proxy_pac_rb/proxy_pac_dumper.rb
Overview
Dump Proxy pac to file system
Instance Method Summary collapse
- #dump(proxy_pac, type:) ⇒ Object
-
#initialize ⇒ ProxyPacDumper
constructor
A new instance of ProxyPacDumper.
Constructor Details
#initialize ⇒ ProxyPacDumper
Returns a new instance of ProxyPacDumper.
12 13 14 15 16 |
# File 'lib/proxy_pac_rb/proxy_pac_dumper.rb', line 12 def initialize @dumpers = Hash.new { ProxyPacStringDumper.new } @dumpers[:template] = ProxyPacTemplateDumper.new @dumpers[:string] = ProxyPacStringDumper.new end |
Instance Method Details
#dump(proxy_pac, type:) ⇒ Object
18 19 20 |
# File 'lib/proxy_pac_rb/proxy_pac_dumper.rb', line 18 def dump(proxy_pac, type:) dumpers[type].dump(proxy_pac) end |