Module: Fog::Network

Extended by:
ServicesMixin
Defined in:
lib/fog/network.rb

Class Method Summary collapse

Methods included from ServicesMixin

[], new, providers

Class Method Details

.new(orig_attributes) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/fog/network.rb', line 5

def self.new(orig_attributes)
  attributes = orig_attributes.dup # Prevent delete from having side effects
  provider = attributes.delete(:provider).to_s.downcase.to_sym

  if provider == :stormondemand
    require "fog/network/storm_on_demand"
    return Fog::Network::StormOnDemand.new(attributes)
  else
    super(orig_attributes)
  end
end