Module: Detector
- Defined in:
- lib/detectors/detector.rb
Class Method Summary collapse
Class Method Details
.setup(paramters) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/detectors/detector.rb', line 2 def self.setup(paramters) if paramters[:type] == 'ifconfig' && paramters[:version] == 6 return Ifconfig.new(paramters[:network_interface], paramters[:version]) end if paramters[:type] == 'ipify' return Ipify.new(paramters[:network_interface], paramters[:version]) end end |