Sha256: 59b8ba73a0170a2700a59f4e5da53698f66323f2b9d7ccdb4e75254501990587
Contents?: true
Size: 573 Bytes
Versions: 28
Compression:
Stored size: 573 Bytes
Contents
module Fog module Compute class Ecloud class Location < Fog::Ecloud::Model identity :href ignore_attributes :xmlns, :xmlns_xsi, :xmlns_xsd, :xmlns_i attribute :name, :aliases => :Name attribute :type, :aliases => :Type def catalog(org_href) @catalog ||= Fog::Compute::Ecloud::Catalog.new(:service => service, :href => "/cloudapi/ecloud/admin/catalog/organizations/#{org_href.scan(/\d+/)[0]}/locations/#{id}") end def id href.scan(/\d+/)[0] end end end end end
Version data entries
28 entries across 28 versions & 6 rubygems