Sha256: 11a1a7c74e91f17029c48619197ca348d873368b14c0c029a1b6d741f85604f1
Contents?: true
Size: 528 Bytes
Versions: 22
Compression:
Stored size: 528 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 = connection.get_locations.body load(data) end def get(location_id) response = connection.get_location(location_id) new(response.body) rescue Fog::Compute::Bluebox::NotFound nil end end end end end
Version data entries
22 entries across 22 versions & 11 rubygems