Class: Fog::Compute::Ecloud::FirewallAcls
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::FirewallAcls
- Defined in:
- lib/fog/ecloud/models/compute/firewall_acls.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
12 13 14 15 16 |
# File 'lib/fog/ecloud/models/compute/firewall_acls.rb', line 12 def all data = service.get_firewall_acls(href).body data = data[:FirewallAcl] ? data[:FirewallAcl] : data load(data) end |
#get(uri) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/fog/ecloud/models/compute/firewall_acls.rb', line 18 def get(uri) if data = service.get_firewall_acl(uri) new(data.body) end rescue Fog::Errors::NotFound nil end |