module Fog::Account

Public Class Methods

new(orig_attributes) click to toggle source
Calls superclass method
# 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
providers() click to toggle source
# File lib/fog/account.rb, line 17
def self.providers
  Fog.services[:account] || []
end