Class: Google

Inherits:
Fog::Bin show all
Defined in:
lib/fog/google/bin.rb

Class Method Summary collapse

Methods inherited from Fog::Bin

available?, collections

Class Method Details

.[](service) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/fog/google/bin.rb', line 4

def [](service)
  @@connections ||= Hash.new do |hash, key|
    hash[key] = case key
    when :storage
      Fog::Google::Storage.new
    end
  end
  @@connections[service]
end

.servicesObject



14
15
16
# File 'lib/fog/google/bin.rb', line 14

def services
  [:storage]
end