Module: GoGrid
- Defined in:
- lib/fog/go_grid/bin.rb
Instance Method Summary collapse
Instance Method Details
#[](service) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/go_grid/bin.rb', line 9 def [](service) @@connections ||= Hash.new do |hash, key| credentials = Fog.credentials.reject do |k,v| ![:go_grid_api_key, :go_grid_shared_secret].include?(k) end hash[key] = case key when :go_grid Fog::GoGrid.new(credentials) end end @@connections[service] end |
#initialized? ⇒ Boolean
5 6 7 |
# File 'lib/fog/go_grid/bin.rb', line 5 def initialized? true end |