Sha256: 6aba6b786ae200edbcd42d108ddd5bc73761f68eb58e49323e6d1847c794596b
Contents?: true
Size: 564 Bytes
Versions: 17
Compression:
Stored size: 564 Bytes
Contents
require 'fog/ecloud/models/compute/location' module Fog module Compute class Ecloud class Locations < Fog::Ecloud::Collection model Fog::Compute::Ecloud::Location undef_method :create identity :href def all data = service.get_organization(href).body[:Locations][:Location] load(data) end def get(uri) if data = service.get_location(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
17 entries across 17 versions & 5 rubygems