Sha256: d9a5928a3c8d99ac796dd6331965d0476efa7a903399c99c9d04c35808115f0a
Contents?: true
Size: 518 Bytes
Versions: 39
Compression:
Stored size: 518 Bytes
Contents
require 'fog/core/collection' require 'fog/bluebox/models/compute/location' module Fog module Compute class Bluebox class Locations < Fog::Collection model Fog::Compute::Bluebox::Location def all data = service.get_locations.body load(data) end def get(location_id) response = service.get_location(location_id) new(response.body) rescue Fog::Compute::Bluebox::NotFound nil end end end end end
Version data entries
39 entries across 37 versions & 5 rubygems