Module: Fog::Account

Extended by:
ServicesMixin
Defined in:
lib/fog/account.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/account.rb', line 5

def self.new(orig_attributes)
  attributes = orig_attributes.dup
  provider = attributes.delete(:provider).to_s.downcase.to_sym

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

.providersObject



17
18
19
# File 'lib/fog/account.rb', line 17

def self.providers
  Fog.services[:account] || []
end