Class: Fog::Compute::Ecloud::Location
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::Location
- Defined in:
- lib/fog/compute/ecloud/models/location.rb
Instance Attribute Summary
Attributes inherited from Ecloud::Model
Instance Method Summary collapse
Methods inherited from Ecloud::Model
Instance Method Details
#catalog(org_href) ⇒ Object
12 13 14 |
# File 'lib/fog/compute/ecloud/models/location.rb', line 12 def catalog(org_href) @catalog ||= Fog::Compute::Ecloud::Catalog.new(:service => service, :href => "#{service.base_path}/admin/catalog/organizations/#{org_href.scan(/\d+/)[0]}/locations/#{id}") end |
#id ⇒ Object
16 17 18 |
# File 'lib/fog/compute/ecloud/models/location.rb', line 16 def id href.scan(/\d+/)[0] end |
#reload ⇒ Object
20 21 22 23 |
# File 'lib/fog/compute/ecloud/models/location.rb', line 20 def reload @catalog = nil super end |