Class: Fog::Balancer
- Inherits:
-
Object
- Object
- Fog::Balancer
- Defined in:
- lib/fog/ext/balancer.rb
Class Method Summary collapse
Class Method Details
.new(attributes) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/fog/ext/balancer.rb', line 5 def self.new(attributes) attributes = attributes.dup case provider = attributes.delete(:provider).to_s.downcase.to_sym when :aws Fog::AWS::ELB.new(attributes) else raise ArgumentError.new("#{provider} is not a recognized balancer provider") end end |