Sha256: 50c6e561f5efbcd8373a23c0492752ab96564a26a7ed0441c951a3bb7dbab484
Contents?: true
Size: 522 Bytes
Versions: 65
Compression:
Stored size: 522 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
65 entries across 65 versions & 6 rubygems