Class: Fog::Compute::Ecloud::TrustedNetworkGroups
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::TrustedNetworkGroups
- Defined in:
- lib/fog/ecloud/models/compute/trusted_network_groups.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
permalink #all ⇒ Object
[View source]
11 12 13 14 15 |
# File 'lib/fog/ecloud/models/compute/trusted_network_groups.rb', line 11 def all data = service.get_trusted_network_groups(href).body data = data[:TrustedNetworkGroup] ? data[:TrustedNetworkGroup] : data load(data) end |
permalink #get(uri) ⇒ Object
[View source]
17 18 19 20 21 22 23 |
# File 'lib/fog/ecloud/models/compute/trusted_network_groups.rb', line 17 def get(uri) if data = service.get_trusted_network_group(uri) new(data.body) end rescue Fog::Errors::NotFound nil end |